From 29fd422b18fb5f77cd24e1d25292071a10b001da Mon Sep 17 00:00:00 2001 From: abmantis Date: Thu, 7 Aug 2025 11:47:18 +0100 Subject: [PATCH] Update trigger method names --- homeassistant/components/light/trigger.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/light/trigger.py b/homeassistant/components/light/trigger.py index 7e7a0dc29fd..4fcf178ec72 100644 --- a/homeassistant/components/light/trigger.py +++ b/homeassistant/components/light/trigger.py @@ -59,17 +59,15 @@ class StateTrigger(Trigger): @override @classmethod - async def async_validate_trigger_config( + async def async_validate_config( cls, hass: HomeAssistant, config: ConfigType ) -> ConfigType: """Validate config.""" return cast(ConfigType, STATE_TRIGGER_SCHEMA(config)) @override - async def async_attach_trigger( - self, - action: TriggerActionType, - trigger_info: TriggerInfo, + async def async_attach( + self, action: TriggerActionType, trigger_info: TriggerInfo ) -> CALLBACK_TYPE: """Attach the trigger.""" job = HassJob(action, f"light state trigger {trigger_info}")