Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Sep 22, 2022
1 parent 162f0d0 commit 2119bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/powercalc/sensors/group.py
Expand Up @@ -377,7 +377,7 @@ def on_state_change(self, event):
_LOGGER.error(
f"Group member '{state.entity_id}' has another unit of measurement '{unit_of_measurement}' than the group '{self.entity_id}' which has '{self._attr_native_unit_of_measurement}', this is not supported yet. Removing this entity from the total sum."
)
states.remove(state)
available_states.remove(state)
self._entities.remove(state.entity_id)

if not available_states:
Expand Down

0 comments on commit 2119bec

Please sign in to comment.