mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 22:40:44 +00:00
Validate device trigger schemas once (#48319)
This commit is contained in:
@@ -257,8 +257,6 @@ async def async_attach_trigger(
|
||||
automation_info: dict,
|
||||
) -> CALLBACK_TYPE:
|
||||
"""Attach a trigger."""
|
||||
config = TRIGGER_SCHEMA(config)
|
||||
|
||||
device_id = config[CONF_DEVICE_ID]
|
||||
device = hass.data[TRIGGERS][device_id]
|
||||
return await device.async_attach_trigger(config, action, automation_info)
|
||||
|
||||
Reference in New Issue
Block a user