mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Catch ClientOSError in renault integration (#104248)
This commit is contained in:
parent
669daabfdb
commit
a5d48da07a
@ -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