Catch ClientOSError in renault integration (#104248)

This commit is contained in:
epenet
2023-11-20 12:58:55 +01:00
committed by GitHub
parent afea9f7739
commit 2def7d2e71

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