mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Update template example to use state_with_unit
This commit is contained in:
parent
b211894a31
commit
19d1da48c4
@ -142,7 +142,7 @@ Polymer({
|
||||
'For loop example:\n' +
|
||||
'{% for state in states.sensor -%}\n' +
|
||||
' {%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}\n' +
|
||||
' {{ state.name | lower }} is {{state.state}} {{- state.attributes.unit_of_measurement}}\n' +
|
||||
' {{ state.name | lower }} is {{state.state_with_unit}}\n' +
|
||||
'{%- endfor -%}.',
|
||||
/* eslint-enable max-len */
|
||||
observer: 'templateChanged',
|
||||
|
Loading…
x
Reference in New Issue
Block a user