Allow spaces in group setup string

This commit is contained in:
Paulus Schoutsen 2015-08-30 20:44:38 -07:00
parent 98b0367249
commit 64fff48021
2 changed files with 4 additions and 2 deletions

View file

@ -104,7 +104,7 @@ def setup(hass, config):
""" Sets up all groups found definded in the configuration. """
for name, entity_ids in config.get(DOMAIN, {}).items():
if isinstance(entity_ids, str):
entity_ids = entity_ids.split(",")
entity_ids = [ent.strip() for ent in entity_ids.split(",")]
setup_group(hass, name, entity_ids)
return True