mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Only save the valid entities in the group entity_ids attribute
This commit is contained in:
parent
40cde1f836
commit
81be3811dc
@ -169,7 +169,7 @@ def setup_group(hass, name, entity_ids, user_defined=True):
|
||||
|
||||
group_entity_id = ENTITY_ID_FORMAT.format(util.slugify(name))
|
||||
state = group_on if group_state else group_off
|
||||
state_attr = {ATTR_ENTITY_ID: entity_ids, ATTR_AUTO: not user_defined}
|
||||
state_attr = {ATTR_ENTITY_ID: group_ids, ATTR_AUTO: not user_defined}
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def update_group_state(entity_id, old_state, new_state):
|
||||
|
Loading…
x
Reference in New Issue
Block a user