mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Handle Sense timeout exceptions from initial authentication (#72369)
This commit is contained in:
parent
1b5a46a5ba
commit
c10d456d11
@ -80,6 +80,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
except (SenseAuthenticationException, SenseMFARequiredException) as err:
|
except (SenseAuthenticationException, SenseMFARequiredException) as err:
|
||||||
_LOGGER.warning("Sense authentication expired")
|
_LOGGER.warning("Sense authentication expired")
|
||||||
raise ConfigEntryAuthFailed(err) from err
|
raise ConfigEntryAuthFailed(err) from err
|
||||||
|
except SENSE_TIMEOUT_EXCEPTIONS as err:
|
||||||
|
raise ConfigEntryNotReady(
|
||||||
|
str(err) or "Timed out during authentication"
|
||||||
|
) from err
|
||||||
|
|
||||||
sense_devices_data = SenseDevicesData()
|
sense_devices_data = SenseDevicesData()
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user