From 8bd60f0bc2f9c6b82ec1b44b8badf2abc04be336 Mon Sep 17 00:00:00 2001 From: abmantis Date: Wed, 16 Jul 2025 15:25:01 +0100 Subject: [PATCH] Add top-level target support to trigger schema This makes it consistent with the service schema. --- script/hassfest/triggers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/hassfest/triggers.py b/script/hassfest/triggers.py index ff6654f2789..8efaab47050 100644 --- a/script/hassfest/triggers.py +++ b/script/hassfest/triggers.py @@ -38,6 +38,9 @@ FIELD_SCHEMA = vol.Schema( TRIGGER_SCHEMA = vol.Any( vol.Schema( { + vol.Optional("target"): vol.Any( + selector.TargetSelector.CONFIG_SCHEMA, None + ), vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}), } ),