Fix unknown exception being caught (#35005)

This commit is contained in:
Xiaonan Shen authored and GitHub committed 2020-05-01 13:34:29 +02:00
1 parent 66d3832be9
commit be58c4f71a
2 files changed
-3

No files matched your search

@@ -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"
}
},