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
This commit is contained in:
J. Nick Koston 2024-03-04 01:10:44 -10:00 committed by GitHub
parent c58828aac0
commit 9d7c947d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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