From 0af4be2e24724c40b8b8b3adf962734fd37f694a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 15 Jun 2017 00:02:07 +0200 Subject: [PATCH] Fix key error --- homeassistant/components/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/group.py b/homeassistant/components/group.py index cd708f8b7a2..15a753bd320 100644 --- a/homeassistant/components/group.py +++ b/homeassistant/components/group.py @@ -267,7 +267,7 @@ def async_setup(hass, config): extra_arg = {attr: service.data[attr] for attr in ( ATTR_VISIBLE, ATTR_ICON, ATTR_VIEW, ATTR_CONTROL - ) if service.data[attr] is not None} + ) if service.data.get(attr) is not None} new_group = yield from Group.async_create_group( hass, service.data.get(ATTR_NAME, object_id),