Update scripts.markdown: Fix shorthand for templates in loops (#20254)

This commit is contained in:
akloeckner 2021-11-11 08:52:26 +01:00 committed by GitHub
parent 072a1d67d2
commit 076a69e6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,8 +429,9 @@ For example:
{% raw %} {% raw %}
```yaml ```yaml
- while: "{{ is_state('sensor.mode', 'Home') and repeat.index < 10 }}" - repeat:
sequence: while: "{{ is_state('sensor.mode', 'Home') and repeat.index < 10 }}"
sequence:
- ... - ...
``` ```
@ -479,8 +480,9 @@ For example:
{% raw %} {% raw %}
```yaml ```yaml
- until: "{{ is_state('device_tracker.iphone', 'home') }}" - repeat:
sequence: until: "{{ is_state('device_tracker.iphone', 'home') }}"
sequence:
- ... - ...
``` ```
{% endraw %} {% endraw %}