mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix unknown exception being caught (#35005)
This commit is contained in:
parent
66d3832be9
commit
be58c4f71a
@ -86,8 +86,6 @@ class RoombaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
info = await validate_input(self.hass, user_input)
|
info = await validate_input(self.hass, user_input)
|
||||||
except CannotConnect:
|
except CannotConnect:
|
||||||
errors = {"base": "cannot_connect"}
|
errors = {"base": "cannot_connect"}
|
||||||
except Exception: # pylint: disable=broad-except
|
|
||||||
errors = {"base": "unknown"}
|
|
||||||
|
|
||||||
if "base" not in errors:
|
if "base" not in errors:
|
||||||
await async_disconnect_or_timeout(self.hass, info[ROOMBA_SESSION])
|
await async_disconnect_or_timeout(self.hass, info[ROOMBA_SESSION])
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"unknown": "Unexpected error",
|
|
||||||
"cannot_connect": "Failed to connect, please try again"
|
"cannot_connect": "Failed to connect, please try again"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user