Skip to content

Commit

Permalink
Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jul 30, 2022
1 parent 98b4565 commit c385964
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/powercalc/sensors/group.py
Expand Up @@ -250,10 +250,8 @@ async def async_added_to_hass(self) -> None:
def _async_hide_members(self) -> None:
"""Hide or unhide group members."""
registry = er.async_get(self.hass)
for member in self._entities:
if not (entity_id := er.async_resolve_entity_id(registry, member)):
continue
registry_entry = registry.async_get(member)
for entity_id in self._entities:
registry_entry = registry.async_get(entity_id)
if not registry_entry:
continue

Expand Down

0 comments on commit c385964

Please sign in to comment.