瀏覽代碼

Update README.md

tteckster 3 年之前
父節點
當前提交
5f7358ef62
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      README.md

+ 5 - 2
README.md

@@ -690,8 +690,11 @@ Then type exit to get back to root
 
 Change the recorder: `db_url:` in your HA configuration.yaml
  
-Example: `db_url: postgresql://admin:your-password@192.168.100.20:5432/homeassistant?client_encoding=utf8`
- 
+Example:
+```yaml
+recorder:
+  db_url: postgresql://admin:your-password@192.168.100.20:5432/homeassistant?client_encoding=utf8
+``` 
 ⚙️ **To Update PostgreSQL**
 
 Run in the LXC console