mirror of https://github.com/home-assistant/core
Upgrade Verisure to 2.6.6 (#98258)
This commit is contained in:
parent
48b6b1c11a
commit
c2713f0aed
|
@ -47,7 +47,7 @@ class VerisureDataUpdateCoordinator(DataUpdateCoordinator):
|
|||
try:
|
||||
await self.hass.async_add_executor_job(self.verisure.login_cookie)
|
||||
except VerisureLoginError as ex:
|
||||
LOGGER.error("Could not log in to verisure, %s", ex)
|
||||
LOGGER.error("Credentials expired for Verisure, %s", ex)
|
||||
raise ConfigEntryAuthFailed("Credentials expired for Verisure") from ex
|
||||
except VerisureError as ex:
|
||||
LOGGER.error("Could not log in to verisure, %s", ex)
|
||||
|
@ -63,8 +63,16 @@ class VerisureDataUpdateCoordinator(DataUpdateCoordinator):
|
|||
"""Fetch data from Verisure."""
|
||||
try:
|
||||
await self.hass.async_add_executor_job(self.verisure.update_cookie)
|
||||
except VerisureLoginError as ex:
|
||||
raise ConfigEntryAuthFailed("Credentials expired for Verisure") from ex
|
||||
except VerisureLoginError:
|
||||
LOGGER.debug("Cookie expired, acquiring new cookies")
|
||||
try:
|
||||
await self.hass.async_add_executor_job(self.verisure.login_cookie)
|
||||
except VerisureLoginError as ex:
|
||||
LOGGER.error("Credentials expired for Verisure, %s", ex)
|
||||
raise ConfigEntryAuthFailed("Credentials expired for Verisure") from ex
|
||||
except VerisureError as ex:
|
||||
LOGGER.error("Could not log in to verisure, %s", ex)
|
||||
raise ConfigEntryAuthFailed("Could not log in to verisure") from ex
|
||||
except VerisureError as ex:
|
||||
raise UpdateFailed("Unable to update cookie") from ex
|
||||
try:
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
"integration_type": "hub",
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["verisure"],
|
||||
"requirements": ["vsure==2.6.4"]
|
||||
"requirements": ["vsure==2.6.6"]
|
||||
}
|
||||
|
|
|
@ -2647,7 +2647,7 @@ volkszaehler==0.4.0
|
|||
volvooncall==0.10.3
|
||||
|
||||
# homeassistant.components.verisure
|
||||
vsure==2.6.4
|
||||
vsure==2.6.6
|
||||
|
||||
# homeassistant.components.vasttrafik
|
||||
vtjp==0.1.14
|
||||
|
|
|
@ -1941,7 +1941,7 @@ voip-utils==0.1.0
|
|||
volvooncall==0.10.3
|
||||
|
||||
# homeassistant.components.verisure
|
||||
vsure==2.6.4
|
||||
vsure==2.6.6
|
||||
|
||||
# homeassistant.components.vulcan
|
||||
vulcan-api==2.3.0
|
||||
|
|
Loading…
Reference in New Issue