Upgrade Verisure to 2.6.6 (#98258)
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user