mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Fix AQI template sensor example (#27724)
It was a little unclear where to put the sample YAML because it was missing the top-level `template:`.
This commit is contained in:
parent
f32d79889e
commit
cc3379b958
@ -94,7 +94,8 @@ guidelines.
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
sensor:
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Local Outdoor Air Quality"
|
||||
state: >
|
||||
{% set pm2_5_avg = states("sensor.average_outdoor_pm2_5_24h") | int %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user