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

View File

@@ -823,7 +823,7 @@ def async_setup_cleanup(hass: HomeAssistant, dev_reg: DeviceRegistry) -> None:
async def cleanup() -> None:
"""Cleanup."""
ent_reg = await entity_registry.async_get_registry(hass)
ent_reg = entity_registry.async_get(hass)
async_cleanup(hass, dev_reg, ent_reg)
debounced_cleanup = Debouncer(