From af90d14398fe61d430081b79fdd6756cd547d936 Mon Sep 17 00:00:00 2001 From: Peter Wilhelm Date: Tue, 21 May 2024 09:09:37 -0500 Subject: [PATCH] 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'] --- source/_integrations/system_log.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/system_log.markdown b/source/_integrations/system_log.markdown index 14db0ffcf2d..130b085f3c1 100644 --- a/source/_integrations/system_log.markdown +++ b/source/_integrations/system_log.markdown @@ -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 %}