Readd setting up groups with comma seperated list

This commit is contained in:
Paulus Schoutsen 2015-08-08 13:44:07 -07:00
parent 0901ed4659
commit fc6d7db81b
2 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,8 @@ 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.get(DOMAIN, {}).items():
if isinstance(entity_ids, str):
entity_ids = entity_ids.split(",")
setup_group(hass, name, entity_ids)
return True

View File

@ -199,7 +199,7 @@ class TestComponentsGroup(unittest.TestCase):
self.hass,
{
group.DOMAIN: {
'second_group': (self.group_entity_id, 'light.Bowl')
'second_group': self.group_entity_id + ',light.Bowl'
}
}))