mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Update example for using trigger.event.data.message due to syntax error (#32774)
trigger.event.data.message is received as a list (as evidenced by the condition that checks for data within the first element). Following the example as it currently is generates the following error, which this change will now mitigate. template value should be a string for dictionary value @ data['message']
This commit is contained in:
parent
9acdcd93ce
commit
af90d14398
@ -120,7 +120,7 @@ automation:
|
||||
service: persistent_notification.create
|
||||
data:
|
||||
title: Something bad happened
|
||||
message: "{{ trigger.event.data.message }}"
|
||||
message: "{{ trigger.event.data.message[0] }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user