Skip to content

Commit

Permalink
debug cleanup entities
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Feb 15, 2024
1 parent a6ba6fd commit 17004b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def get_device_config_for_gateway(hass: HomeAssistant, config_entry: ConfigEntry

def cleanup_unavailable_entities(hass: HomeAssistant):
# for p in pl.async_get_platforms(hass, DOMAIN):
for e in pl.async_get_current_platform().entities:
LOGGER.debug(f"ENTITY {e} IN PLATFORM {p.platform_name}")
# cur_pl = pl.async_get_current_platform()
# for e in cur_pl.entities:
# LOGGER.debug(f"ENTITY {e} IN PLATFORM {cur_pl.platform_name} {cur_pl.}")

entity_registry = er.async_get(hass)
for key, e in entity_registry.entities.items():
Expand Down

0 comments on commit 17004b6

Please sign in to comment.