Add templates to scaffold device_trigger, device_condition, (#26871)

device_action
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-09-27 12:54:17 -07:00
1 parent 80bc15e24b
commit 77654da341
9 files changed
+638 -4

No files matched your search

@@ -35,13 +35,13 @@ async def async_attach_trigger(hass, config, action, automation_info):
trigger = zha_device.device_automation_triggers[trigger]
state_config = {
event_config = {
event.CONF_EVENT_TYPE: ZHA_EVENT,
event.CONF_EVENT_DATA: {DEVICE_IEEE: str(zha_device.ieee), **trigger},
}
return await event.async_attach_trigger(
hass, state_config, action, automation_info, platform_type="device"
hass, event_config, action, automation_info, platform_type="device"
)