Validate device trigger schemas once (#48319)
This commit is contained in:
parent
de1fa706a0
commit
72281f4718
16 changed files with 0 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue