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:
Christopher Masto 2023-06-08 17:51:04 -04:00 committed by GitHub
parent f32d79889e
commit cc3379b958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}