diff --git a/homeassistant/components/group.py b/homeassistant/components/group.py
index 3a904d24eb5a68ff8e617f3cd5b2d273a44923cd..e3c7d3586ea513448bfda42e56103ae3b877f5f6 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)