mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Catch ClientOSError in renault integration (#104248)
This commit is contained in:
parent
afea9f7739
commit
2def7d2e71
@ -28,7 +28,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
try:
|
||||
await renault_hub.async_initialise(config_entry)
|
||||
except aiohttp.ClientResponseError as exc:
|
||||
except aiohttp.ClientError as exc:
|
||||
raise ConfigEntryNotReady() from exc
|
||||
|
||||
hass.data[DOMAIN][config_entry.entry_id] = renault_hub
|
||||
|
Loading…
x
Reference in New Issue
Block a user