mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix opentherm_gw startup failure handling (#76376)
This commit is contained in:
parent
a6963e6a38
commit
ddf3d23c27
@ -117,6 +117,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||
timeout=CONNECTION_TIMEOUT,
|
||||
)
|
||||
except (asyncio.TimeoutError, ConnectionError, SerialException) as ex:
|
||||
await gateway.cleanup()
|
||||
raise ConfigEntryNotReady(
|
||||
f"Could not connect to gateway at {gateway.device_path}: {ex}"
|
||||
) from ex
|
||||
|
Loading…
x
Reference in New Issue
Block a user