From 9d7c947d199d70ee0b2ad660bd8e9c59cb5e3e87 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 4 Mar 2024 01:10:44 -1000 Subject: [PATCH] Migrate config to use async_get_component (#112160) The component should always be loaded here but in the rare case it might not be, we should not block the loop when it loads --- homeassistant/components/config/device_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/config/device_registry.py b/homeassistant/components/config/device_registry.py index 7bd76310929..8444d407030 100644 --- a/homeassistant/components/config/device_registry.py +++ b/homeassistant/components/config/device_registry.py @@ -124,7 +124,7 @@ async def websocket_remove_config_entry_from_device( try: integration = await loader.async_get_integration(hass, config_entry.domain) - component = integration.get_component() + component = await integration.async_get_component() except (ImportError, loader.IntegrationNotFound) as exc: raise HomeAssistantError("Integration not found") from exc