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 2d808bf commit a6ba6fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,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 p.entities:
LOGGER.debug(f"ENTITY {e} IN PLATFORM {p.platform_name}")
# 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}")

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

0 comments on commit a6ba6fd

Please sign in to comment.