mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add missing CozyTouch servers to ConfigFlow expection handler in Overkiz (#131696)
This commit is contained in:
parent
d785c4b0b1
commit
a7ba63bf86
@ -151,9 +151,11 @@ class OverkizConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
except BadCredentialsException as exception:
|
except BadCredentialsException as exception:
|
||||||
# If authentication with CozyTouch auth server is valid, but token is invalid
|
# If authentication with CozyTouch auth server is valid, but token is invalid
|
||||||
# for Overkiz API server, the hardware is not supported.
|
# for Overkiz API server, the hardware is not supported.
|
||||||
if user_input[CONF_HUB] == Server.ATLANTIC_COZYTOUCH and not isinstance(
|
if user_input[CONF_HUB] in {
|
||||||
exception, CozyTouchBadCredentialsException
|
Server.ATLANTIC_COZYTOUCH,
|
||||||
):
|
Server.SAUTER_COZYTOUCH,
|
||||||
|
Server.THERMOR_COZYTOUCH,
|
||||||
|
} and not isinstance(exception, CozyTouchBadCredentialsException):
|
||||||
description_placeholders["unsupported_device"] = "CozyTouch"
|
description_placeholders["unsupported_device"] = "CozyTouch"
|
||||||
errors["base"] = "unsupported_hardware"
|
errors["base"] = "unsupported_hardware"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user