mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Handle timeouts on Airzone DHCP config flow (#123869)
airzone: config_flow: dhcp: catch timeout exception Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
5f1d7e5566
commit
903342b394
@ -114,7 +114,7 @@ class AirZoneConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
await airzone.get_version()
|
await airzone.get_version()
|
||||||
except AirzoneError as err:
|
except (AirzoneError, TimeoutError) as err:
|
||||||
raise AbortFlow("cannot_connect") from err
|
raise AbortFlow("cannot_connect") from err
|
||||||
|
|
||||||
return await self.async_step_discovered_connection()
|
return await self.async_step_discovered_connection()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user