Trigger also with orderdict

pull/10060/head
Pascal Vizeli 2017-10-23 09:01:59 +02:00 committed by GitHub
parent 4bf1972393
commit 205f24c070
1 changed files with 1 additions and 1 deletions

View File

@ -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):