mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Upgrade Verisure to 2.6.4 (#97278)
This commit is contained in:
parent
f4e79bbab8
commit
a70c10d3c9
@ -7,7 +7,6 @@ from time import sleep
|
|||||||
from verisure import (
|
from verisure import (
|
||||||
Error as VerisureError,
|
Error as VerisureError,
|
||||||
LoginError as VerisureLoginError,
|
LoginError as VerisureLoginError,
|
||||||
ResponseError as VerisureResponseError,
|
|
||||||
Session as Verisure,
|
Session as Verisure,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -50,7 +49,7 @@ class VerisureDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
except VerisureLoginError as ex:
|
except VerisureLoginError as ex:
|
||||||
LOGGER.error("Could not log in to verisure, %s", ex)
|
LOGGER.error("Could not log in to verisure, %s", ex)
|
||||||
raise ConfigEntryAuthFailed("Credentials expired for Verisure") from ex
|
raise ConfigEntryAuthFailed("Credentials expired for Verisure") from ex
|
||||||
except VerisureResponseError 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)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -65,11 +64,9 @@ class VerisureDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
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 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 VerisureResponseError as ex:
|
except VerisureError as ex:
|
||||||
LOGGER.error("Could not log in to verisure, %s", ex)
|
raise UpdateFailed("Unable to update cookie") from ex
|
||||||
raise ConfigEntryAuthFailed("Could not log in to verisure") from ex
|
|
||||||
try:
|
try:
|
||||||
overview = await self.hass.async_add_executor_job(
|
overview = await self.hass.async_add_executor_job(
|
||||||
self.verisure.request,
|
self.verisure.request,
|
||||||
@ -81,13 +78,6 @@ class VerisureDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
self.verisure.smart_lock(),
|
self.verisure.smart_lock(),
|
||||||
self.verisure.smartplugs(),
|
self.verisure.smartplugs(),
|
||||||
)
|
)
|
||||||
except VerisureResponseError as err:
|
|
||||||
LOGGER.debug("Cookie expired or service unavailable, %s", err)
|
|
||||||
overview = self._overview
|
|
||||||
try:
|
|
||||||
await self.hass.async_add_executor_job(self.verisure.update_cookie)
|
|
||||||
except VerisureResponseError as ex:
|
|
||||||
raise ConfigEntryAuthFailed("Credentials for Verisure expired.") from ex
|
|
||||||
except VerisureError as err:
|
except VerisureError as err:
|
||||||
LOGGER.error("Could not read overview, %s", err)
|
LOGGER.error("Could not read overview, %s", err)
|
||||||
raise UpdateFailed("Could not read overview") from err
|
raise UpdateFailed("Could not read overview") from err
|
||||||
|
@ -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.1"]
|
"requirements": ["vsure==2.6.4"]
|
||||||
}
|
}
|
||||||
|
@ -2637,7 +2637,7 @@ volkszaehler==0.4.0
|
|||||||
volvooncall==0.10.3
|
volvooncall==0.10.3
|
||||||
|
|
||||||
# homeassistant.components.verisure
|
# homeassistant.components.verisure
|
||||||
vsure==2.6.1
|
vsure==2.6.4
|
||||||
|
|
||||||
# homeassistant.components.vasttrafik
|
# homeassistant.components.vasttrafik
|
||||||
vtjp==0.1.14
|
vtjp==0.1.14
|
||||||
|
@ -1937,7 +1937,7 @@ voip-utils==0.1.0
|
|||||||
volvooncall==0.10.3
|
volvooncall==0.10.3
|
||||||
|
|
||||||
# homeassistant.components.verisure
|
# homeassistant.components.verisure
|
||||||
vsure==2.6.1
|
vsure==2.6.4
|
||||||
|
|
||||||
# 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