You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the init file, the login flow should be improved.
try:
await api_client.login(email, password)
await api_client.get_devices() # NOTE: This is needed since currently the login API does not throw an error if the credentials are invalid: https://github.com/qbaware/homeassistant-eldom/issues/27
_LOGGER.info("Successfully authenticated with Eldom API")
except Exception as e:
_LOGGER.error("Unexpected exception while authenticating with Eldom API: %s", e)
raise ConfigEntryNotReady(
f"Unexpected exception while authenticating with Eldom API: {e}"
) from e
Throw a ConfigEntryAuthFailed exception in case the creds are funny.
Throw a ConfigEntryNotReady exception in case something unexpected happens.
In the
init
file, the login flow should be improved.ConfigEntryAuthFailed
exception in case the creds are funny.ConfigEntryNotReady
exception in case something unexpected happens.Also, remove the
get_devices
call.This is related to qbaware/pyeldom#4.
The text was updated successfully, but these errors were encountered: