Skip to content

Commit fd44291

Browse files
authored
Update scripts.markdown
1 parent 323d613 commit fd44291

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

source/getting-started/scripts.markdown

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,13 @@ Wait until some things are complete. We support at the moment `wait_template` fo
8080

8181
```yaml
8282
# wait until media player have stop the playing
83-
wait_template: "{{ states.media_player.floor.states == 'stop' }}"
83+
wait_template: {% raw %}"{{ states.media_player.floor.states == 'stop' }}"{% endraw %}
8484
```
8585

8686
```yaml
8787
# wait until a valve is < 10 or abort after 1 minutes.
88-
wait_template: "{{ states.climate.kitchen.attributes.valve < 10 }}"
89-
timeout: 00:10:00
90-
```
91-
92-
```yaml
93-
# alternative
94-
wait_template: "{% if"
88+
wait_template: {% raw %}"{{ states.climate.kitchen.attributes.valve < 10 }}"{% endraw %}
89+
timeout: 00:01:00
9590
```
9691

9792
### {% linkable_title Fire an Event %}

0 commit comments

Comments
 (0)