mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Trigger also with orderdict
This commit is contained in:
parent
4bf1972393
commit
205f24c070
@ -31,7 +31,7 @@ def async_trigger(hass, config, action):
|
|||||||
event_type = config.get(CONF_EVENT_TYPE)
|
event_type = config.get(CONF_EVENT_TYPE)
|
||||||
event_data_schema = vol.Schema(
|
event_data_schema = vol.Schema(
|
||||||
config.get(CONF_EVENT_DATA),
|
config.get(CONF_EVENT_DATA),
|
||||||
extra=vol.ALLOW_EXTRA) if CONF_EVENT_DATA in config else None
|
extra=vol.ALLOW_EXTRA) if config.get(CONF_EVENT_DATA) else None
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def handle_event(event):
|
def handle_event(event):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user