mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Fixed MariaDB example (#6291)
MariaDB example had 'db_url' in the incorrect location under 'queries'.
This commit is contained in:
parent
e46d4fbd6b
commit
024731bba9
@ -132,9 +132,9 @@ SELECT * FROM states WHERE entity_id='binary_sensor.xyz789' GROUP BY state ORDER
|
||||
```yaml
|
||||
sensor:
|
||||
- platform: sql
|
||||
db_url: mysql://user:password@localhost/hass
|
||||
queries:
|
||||
- name: DB size
|
||||
db_url: mysql://user:password@localhost/hass
|
||||
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="hass" GROUP BY table_schema;'
|
||||
column: 'value'
|
||||
unit_of_measurement: kB
|
||||
|
Loading…
x
Reference in New Issue
Block a user