From f510ee333b0d1ebdfc62ffbc9eeb95b1aeda8509 Mon Sep 17 00:00:00 2001
From: Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
Date: Wed, 22 Oct 2014 01:07:58 -0700
Subject: [PATCH] group.setup now fails gracefully if config[group] not
 available.

---
 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 3a904d24eb5..e3c7d3586ea 100644
--- a/homeassistant/components/group.py
+++ b/homeassistant/components/group.py
@@ -91,7 +91,7 @@ def get_entity_ids(hass, entity_id, domain_filter=None):
 
 def setup(hass, config):
     """ Sets up all groups found definded in the configuration. """
-    for name, entity_ids in config[DOMAIN].items():
+    for name, entity_ids in config.get(DOMAIN, {}).items():
         entity_ids = entity_ids.split(",")
 
         setup_group(hass, name, entity_ids)
-- 
GitLab