Fix unknown exception being caught (#35005)

This commit is contained in:
Xiaonan Shen 2020-05-01 04:34:29 -07:00 committed by GitHub
parent 66d3832be9
commit be58c4f71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -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])

View File

@ -15,7 +15,6 @@
}
},
"error": {
"unknown": "Unexpected error",
"cannot_connect": "Failed to connect, please try again"
}
},