Update template example to use state_with_unit

This commit is contained in:
Paulus Schoutsen 2017-08-26 16:12:09 -07:00 committed by GitHub
parent b211894a31
commit 19d1da48c4

View File

@ -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',