Merge pull request #4517 from home-assistant/skalavala-patch-1

added code to escape jinja code.
This commit is contained in:
DubhAd 2018-01-25 21:24:47 +00:00 committed by GitHub
commit 5b1e86c32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,7 @@ The following automation shows how to raise a custom event called `event_light_t
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.
{% raw %}
```yaml
- alias: Capture Event
trigger:
@ -157,7 +158,7 @@ The following automation shows how to capture the custom event `event_light_turn
data_template:
message: "{{ trigger.event.data.entity_id }} is turned on."
```
{% endraw %}
[Script component]: /components/script/
[automations]: /getting-started/automation-action/