mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Trigger also with orderdict
This commit is contained in:
@@ -31,7 +31,7 @@ def async_trigger(hass, config, action):
|
||||
event_type = config.get(CONF_EVENT_TYPE)
|
||||
event_data_schema = vol.Schema(
|
||||
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
|
||||
def handle_event(event):
|
||||
|
Reference in New Issue
Block a user