Minimizing of the configuration sample (#1019)

This commit is contained in:
Fabian Affolter 2016-10-01 12:09:50 +02:00 committed by GitHub
parent 227d5a3f4f
commit 0bc1fc4e3c
7 changed files with 44 additions and 37 deletions

View file

@ -23,7 +23,6 @@ To setup the `recorder` component in your installation, add the following to you
```yaml
# Example configuration.yaml entry
recorder:
purge_days: 14
```
Configuration variables:
@ -31,6 +30,14 @@ Configuration variables:
- **purge_days** (*Optional*): Delete events and states older than x days.
- **db_url** (*Optional*): The URL which point to your database.
```yaml
# Example configuration.yaml entry
recorder:
purge_days: 5
db_url: sqlite:///home/user/.homeassistant/test
```
| Database engine | `db_url` |
| :---------------|:---------------------------------------------------------|
| SQLite | `sqlite:///PATH/TO/DB_NAME` |