Clean up use of deprecated async_get_registry methods (#72001)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user