1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 09:38:58 +01:00

Clean up use of deprecated async_get_registry methods (#72001)

This commit is contained in:
Franck Nijhof
2022-05-17 13:40:19 +02:00
committed by GitHub
parent 39b27e4d38
commit 7d2deae592
50 changed files with 51 additions and 51 deletions
@@ -35,7 +35,7 @@ async def async_get_conditions(
hass: HomeAssistant, device_id: str
) -> list[dict[str, str]]:
"""List device conditions for NEW_NAME devices."""
registry = await entity_registry.async_get_registry(hass)
registry = entity_registry.async_get(hass)
conditions = []
# Get all the integrations entities for this device