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