Skip to content

Commit f0503a3

Browse files
brahmafearfabaff
authored andcommitted
Quotes added to example (home-assistant#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.
1 parent c1f94fa commit f0503a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_docs/automation/templating.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ automation 2:
3535
service_template: >{% raw %}
3636
notify.{{ trigger.topic.split('/')[-1] }}{% endraw %}
3737
data_template:
38-
message: {% raw %}{{ trigger.payload }}{% endraw %}
38+
message: {% raw %}'{{ trigger.payload }}'{% endraw %}
3939
```
4040
4141
## {% linkable_title Important Template Rules %}

0 commit comments

Comments
 (0)