mirror of
https://github.com/home-assistant/core.git
synced 2025-08-18 03:51:51 +02:00
Fix key error
This commit is contained in:
@@ -267,7 +267,7 @@ def async_setup(hass, config):
|
|||||||
|
|
||||||
extra_arg = {attr: service.data[attr] for attr in (
|
extra_arg = {attr: service.data[attr] for attr in (
|
||||||
ATTR_VISIBLE, ATTR_ICON, ATTR_VIEW, ATTR_CONTROL
|
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(
|
new_group = yield from Group.async_create_group(
|
||||||
hass, service.data.get(ATTR_NAME, object_id),
|
hass, service.data.get(ATTR_NAME, object_id),
|
||||||
|
Reference in New Issue
Block a user