Fix event data variables for time_pattern triggers

Added guards to event data variables (event_hub_name, event_album_name,
etc.) to check if trigger.event is defined before accessing it.

Previously, these variables would error when the trigger was time_pattern
(hourly_timer) since trigger.event doesn't exist for non-event triggers,
causing the entire automation to fail silently.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 22:53:49 +03:00
parent 369ffe3fb7
commit 39f780b46c
2 changed files with 13 additions and 13 deletions

View File

@@ -1,3 +1,3 @@
{
"version": "1.22.9"
"version": "1.22.10"
}