Skip to content

Commit 5b1e86c

Browse files
authored
Merge pull request home-assistant#4517 from home-assistant/skalavala-patch-1
added code to escape jinja code.
2 parents f7c2c1a + a468d83 commit 5b1e86c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/_docs/scripts.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ The following automation shows how to raise a custom event called `event_light_t
147147

148148
The following automation shows how to capture the custom event `event_light_turned_on`, and retrieve corresponsing `entity_id` that was passed as the event data.
149149

150+
{% raw %}
150151
```yaml
151152
- alias: Capture Event
152153
trigger:
@@ -157,7 +158,7 @@ The following automation shows how to capture the custom event `event_light_turn
157158
data_template:
158159
message: "{{ trigger.event.data.entity_id }} is turned on."
159160
```
160-
161+
{% endraw %}
161162

162163
[Script component]: /components/script/
163164
[automations]: /getting-started/automation-action/

0 commit comments

Comments
 (0)