Fix variables in scripts example (#15253)

This commit is contained in:
Franck Nijhof 2020-10-15 19:46:50 +02:00 committed by GitHub
parent 8dfb4bd021
commit d6693742a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ Scripts may also use a shortcut syntax for activating scenes instead of calling
The variable command allows you to set/override variables that will be accessible by templates in actions after it.
{% raw %}
```yaml
- variables:
entities: light.kitchen, light.living_room
@ -75,6 +77,8 @@ The variable command allows you to set/override variables that will be accessibl
brightness: "{{ brightness }}"
```
{% endraw %}
## Test a Condition
While executing a script you can add a condition to stop further execution. When a condition does not return `true`, the script will stop executing. There are many different conditions which are documented at the [conditions page].