parent
46184188e4
commit
c39a1596d5
1 changed files with 4 additions and 0 deletions
|
@ -49,8 +49,12 @@ async def _validate_login(
|
|||
try:
|
||||
await api.async_login()
|
||||
except InvalidAuth:
|
||||
_LOGGER.exception(
|
||||
"Invalid auth when connecting to %s", login_data[CONF_UTILITY]
|
||||
)
|
||||
errors["base"] = "invalid_auth"
|
||||
except CannotConnect:
|
||||
_LOGGER.exception("Could not connect to %s", login_data[CONF_UTILITY])
|
||||
errors["base"] = "cannot_connect"
|
||||
return errors
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue