mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Quotes added to example (#2245)
The automation 2 / action / data_template example does not adhere to the **must** directive to wrap single line templates in some form of quote.
This commit is contained in:
parent
c1f94faab6
commit
f0503a3088
@ -35,7 +35,7 @@ automation 2:
|
|||||||
service_template: >{% raw %}
|
service_template: >{% raw %}
|
||||||
notify.{{ trigger.topic.split('/')[-1] }}{% endraw %}
|
notify.{{ trigger.topic.split('/')[-1] }}{% endraw %}
|
||||||
data_template:
|
data_template:
|
||||||
message: {% raw %}{{ trigger.payload }}{% endraw %}
|
message: {% raw %}'{{ trigger.payload }}'{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Important Template Rules %}
|
## {% linkable_title Important Template Rules %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user