updated apps
This commit is contained in:
@@ -28,7 +28,9 @@ def remove_power_sensor_from_associated_groups(
|
||||
group_entries = get_groups_having_member(hass, config_entry)
|
||||
|
||||
for group_entry in group_entries:
|
||||
member_sensors = group_entry.data.get(CONF_GROUP_MEMBER_SENSORS) or []
|
||||
# Copy the list so we don't mutate the config entry's data in place, which would make
|
||||
# async_update_entry's change detection see no change and skip persisting/reloading.
|
||||
member_sensors = list(group_entry.data.get(CONF_GROUP_MEMBER_SENSORS) or [])
|
||||
member_sensors.remove(config_entry.entry_id)
|
||||
|
||||
hass.config_entries.async_update_entry(
|
||||
|
||||
Reference in New Issue
Block a user