Readd setting up groups with comma seperated list
This commit is contained in:
parent
0901ed4659
commit
fc6d7db81b
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue