mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Reolink trigger ReAuth when credentials invalid during update (#111492)
Check for CredentialsInvalidError
This commit is contained in:
parent
53f0272357
commit
75e59167de
@ -84,6 +84,8 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||
async with asyncio.timeout(host.api.timeout * (RETRY_ATTEMPTS + 2)):
|
||||
try:
|
||||
await host.update_states()
|
||||
except CredentialsInvalidError as err:
|
||||
raise ConfigEntryAuthFailed(err) from err
|
||||
except ReolinkError as err:
|
||||
raise UpdateFailed(str(err)) from err
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user