mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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)
|
||||
except CannotConnect:
|
||||
errors = {"base": "cannot_connect"}
|
||||
except Exception: # pylint: disable=broad-except
|
||||
errors = {"base": "unknown"}
|
||||
|
||||
if "base" not in errors:
|
||||
await async_disconnect_or_timeout(self.hass, info[ROOMBA_SESSION])
|
||||
|
@ -15,7 +15,6 @@
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"unknown": "Unexpected error",
|
||||
"cannot_connect": "Failed to connect, please try again"
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user