mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
parent
46184188e4
commit
c39a1596d5
@ -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…
x
Reference in New Issue
Block a user