From 205f24c070066ee12de56b88b89dff6c27c0db5c Mon Sep 17 00:00:00 2001 From: Pascal Vizeli <pascal.vizeli@syshack.ch> Date: Mon, 23 Oct 2017 09:01:59 +0200 Subject: [PATCH] Trigger also with orderdict --- homeassistant/components/automation/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/automation/event.py b/homeassistant/components/automation/event.py index 20ea556f450..7c035d7d1a5 100644 --- a/homeassistant/components/automation/event.py +++ b/homeassistant/components/automation/event.py @@ -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): -- GitLab