Add raw tags to template example in 0.15 release blog post
This commit is contained in:
parent
6315450524
commit
18ae052255
1 changed files with 3 additions and 3 deletions
|
@ -36,13 +36,13 @@ automation:
|
|||
entity_id: switch.bathroom
|
||||
action:
|
||||
service_template: >
|
||||
{% if is_state('switch.bathroom', 'on') %}
|
||||
{% raw %}{% if is_state('switch.bathroom', 'on') %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
{% endif %}{% endraw %}
|
||||
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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue