mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
Single quotes in the template example make the yaml invalid (#26244)
This commit is contained in:
parent
0bcba11aaa
commit
856270402e
@ -68,11 +68,11 @@ To explore the data available within the `data` attribute of a sensor use the `d
|
|||||||
template:
|
template:
|
||||||
- sensor:
|
- sensor:
|
||||||
- name: "Updated"
|
- name: "Updated"
|
||||||
state: '{{ state_attr('sensor.merton', 'updated') }}'
|
state: "{{ state_attr('sensor.merton', 'updated') }}"
|
||||||
- name: "Merton PM10"
|
- 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"
|
- name: "Westminster S02"
|
||||||
state: '{{ state_attr('sensor.westminster', 'data')[0].pollutants[3].summary }}'
|
state: "{{ state_attr('sensor.westminster', 'data')[0].pollutants[3].summary }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user