Add raw tags to template example in 0.15 release blog post

This commit is contained in:
Paulus Schoutsen 2016-03-12 11:33:04 -08:00
parent 6315450524
commit 18ae052255

View File

@ -36,13 +36,13 @@ automation:
entity_id: switch.bathroom entity_id: switch.bathroom
action: action:
service_template: > service_template: >
{% if is_state('switch.bathroom', 'on') %} {% raw %}{% if is_state('switch.bathroom', 'on') %}
switch.turn_on switch.turn_on
{% else %} {% else %}
switch.turn_off switch.turn_off
{% endif %} {% endif %}{% endraw %}
data_template: data_template:
entity_id: switch.{{ states('input_select.is') }} entity_id: switch.{% raw %}{{ states('input_select.is') }}{% endraw %}
``` ```
[Hunter Douglas Powerview]: /components/scene.hunterdouglas_powerview/ [Hunter Douglas Powerview]: /components/scene.hunterdouglas_powerview/