mirror of
https://github.com/sudoxnym/fin-assistant.git
synced 2026-04-14 11:37:38 +00:00
async_get_registry -> async_get
This commit is contained in:
parent
9ef69c968e
commit
84c8f4a49b
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ async def async_remove_config_entry_device(
|
|||
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: DeviceEntry
|
||||
) -> bool:
|
||||
"""Remove a config entry from a device."""
|
||||
entreg = await entity_registry.async_get_registry(hass)
|
||||
entreg = entity_registry.async_get(hass)
|
||||
if entity_registry.async_entries_for_device(entreg, device_entry.id):
|
||||
return False
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue