Bump pyopenuv
to 2023.02.0 (#88039)
This commit is contained in:
parent
e0235fbb30
commit
b4c343b1a2
4 changed files with 4 additions and 14 deletions
|
@ -6,7 +6,7 @@ from typing import Any, cast
|
||||||
|
|
||||||
from pyopenuv.errors import InvalidApiKeyError, OpenUvError
|
from pyopenuv.errors import InvalidApiKeyError, OpenUvError
|
||||||
|
|
||||||
from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||||
from homeassistant.helpers.debounce import Debouncer
|
from homeassistant.helpers.debounce import Debouncer
|
||||||
|
@ -60,14 +60,4 @@ class OpenUvCoordinator(DataUpdateCoordinator):
|
||||||
except OpenUvError as err:
|
except OpenUvError as err:
|
||||||
raise UpdateFailed(str(err)) from err
|
raise UpdateFailed(str(err)) from err
|
||||||
|
|
||||||
# OpenUV uses HTTP 403 to indicate both an invalid API key and an API key that
|
|
||||||
# has hit its daily/monthly limit; both cases will result in a reauth flow. If
|
|
||||||
# coordinator update succeeds after a reauth flow has been started, terminate
|
|
||||||
# it:
|
|
||||||
if reauth_flow := next(
|
|
||||||
iter(self._entry.async_get_active_flows(self.hass, {SOURCE_REAUTH})),
|
|
||||||
None,
|
|
||||||
):
|
|
||||||
self.hass.config_entries.flow.async_abort(reauth_flow["flow_id"])
|
|
||||||
|
|
||||||
return cast(dict[str, Any], data["result"])
|
return cast(dict[str, Any], data["result"])
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["pyopenuv"],
|
"loggers": ["pyopenuv"],
|
||||||
"requirements": ["pyopenuv==2023.01.0"]
|
"requirements": ["pyopenuv==2023.02.0"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1840,7 +1840,7 @@ pyoctoprintapi==0.1.9
|
||||||
pyombi==0.1.10
|
pyombi==0.1.10
|
||||||
|
|
||||||
# homeassistant.components.openuv
|
# homeassistant.components.openuv
|
||||||
pyopenuv==2023.01.0
|
pyopenuv==2023.02.0
|
||||||
|
|
||||||
# homeassistant.components.opnsense
|
# homeassistant.components.opnsense
|
||||||
pyopnsense==0.2.0
|
pyopnsense==0.2.0
|
||||||
|
|
|
@ -1326,7 +1326,7 @@ pynzbgetapi==0.2.0
|
||||||
pyoctoprintapi==0.1.9
|
pyoctoprintapi==0.1.9
|
||||||
|
|
||||||
# homeassistant.components.openuv
|
# homeassistant.components.openuv
|
||||||
pyopenuv==2023.01.0
|
pyopenuv==2023.02.0
|
||||||
|
|
||||||
# homeassistant.components.opnsense
|
# homeassistant.components.opnsense
|
||||||
pyopnsense==0.2.0
|
pyopnsense==0.2.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue