Single quotes in the template example make the yaml invalid (#26244)

This commit is contained in:
axel simon 2023-02-19 18:09:13 +00:00 committed by GitHub
parent 0bcba11aaa
commit 856270402e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,11 +68,11 @@ To explore the data available within the `data` attribute of a sensor use the `d
template:
- sensor:
- name: "Updated"
state: '{{ state_attr('sensor.merton', 'updated') }}'
state: "{{ state_attr('sensor.merton', 'updated') }}"
- name: "Merton PM10"
state: '{{ state_attr('sensor.merton', 'data')[0].pollutants[0].summary }}'
state: "{{ state_attr('sensor.merton', 'data')[0].pollutants[0].summary }}"
- name: "Westminster S02"
state: '{{ state_attr('sensor.westminster', 'data')[0].pollutants[3].summary }}'
state: "{{ state_attr('sensor.westminster', 'data')[0].pollutants[3].summary }}"
```
{% endraw %}