mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
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:
parent
c58828aac0
commit
9d7c947d19
@ -124,7 +124,7 @@ async def websocket_remove_config_entry_from_device(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
integration = await loader.async_get_integration(hass, config_entry.domain)
|
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:
|
except (ImportError, loader.IntegrationNotFound) as exc:
|
||||||
raise HomeAssistantError("Integration not found") from exc
|
raise HomeAssistantError("Integration not found") from exc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user