Skip to content

Commit

Permalink
Fix ClientResponseError during integration config flow (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
WebSpider authored Jan 13, 2025
1 parent ff8c2b4 commit a2658fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/myskoda/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import voluptuous as vol

from aiohttp.client_exceptions import ClientResponseError

from homeassistant.config_entries import (
ConfigEntry,
ConfigFlow as BaseConfigFlow,
Expand Down Expand Up @@ -107,7 +109,7 @@ async def async_step_user(

try:
await validate_input(self.hass, user_input)
except CannotConnect:
except (CannotConnect, ClientResponseError):
errors["base"] = "cannot_connect"
except InvalidAuth:
errors["base"] = "invalid_auth"
Expand Down

0 comments on commit a2658fb

Please sign in to comment.