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:
Peter Wilhelm 2024-05-21 09:09:37 -05:00 committed by GitHub
parent 9acdcd93ce
commit af90d14398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 %}