Catch ClientOSError in renault integration (#104248)

This commit is contained in:
epenet 2023-11-20 12:58:55 +01:00 committed by Franck Nijhof
parent 669daabfdb
commit a5d48da07a
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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