From e59567dcd7132eb03dbc6918a1a06a766c913ac3 Mon Sep 17 00:00:00 2001 From: abmantis Date: Thu, 7 Aug 2025 19:19:14 +0100 Subject: [PATCH] Use TARGET_SELECTION_SCHEMA --- homeassistant/components/light/trigger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/light/trigger.py b/homeassistant/components/light/trigger.py index 880de339806..f53876d143a 100644 --- a/homeassistant/components/light/trigger.py +++ b/homeassistant/components/light/trigger.py @@ -19,7 +19,7 @@ from homeassistant.core import ( callback, split_entity_id, ) -from homeassistant.helpers import config_validation as cv +from homeassistant.helpers import config_validation as cv, selector from homeassistant.helpers.event import process_state_match from homeassistant.helpers.target import ( TargetStateChangedData, @@ -43,7 +43,7 @@ STATE_TRIGGER_SCHEMA = vol.All( vol.Required(ATTR_BEHAVIOR, default=BEHAVIOR_ANY): vol.In( [BEHAVIOR_FIRST, BEHAVIOR_LAST, BEHAVIOR_ANY] ), - vol.Required(CONF_TARGET): cv.ENTITY_SERVICE_FIELDS, + vol.Required(CONF_TARGET): selector.TargetSelector.TARGET_SELECTION_SCHEMA, }, ) )