From 84c8f4a49b5a22d4064a4c35447820f056ebb69e Mon Sep 17 00:00:00 2001 From: Chris Browet Date: Sat, 4 Jun 2022 10:24:41 +0200 Subject: [PATCH] async_get_registry -> async_get --- custom_components/jellyfin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/jellyfin/__init__.py b/custom_components/jellyfin/__init__.py index 4e297e8..7bb0205 100644 --- a/custom_components/jellyfin/__init__.py +++ b/custom_components/jellyfin/__init__.py @@ -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