Allow spaces in group setup string
This commit is contained in:
parent
98b0367249
commit
64fff48021
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue