Upgrade myuplink package to 0.2.1 (#110343)

This commit is contained in:
Peter Winkler 2024-02-12 15:33:58 +01:00 committed by GitHub
parent 5cdc3cec32
commit 0157026489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 7 deletions

View File

@ -11,7 +11,7 @@ from homeassistant.helpers import config_entry_oauth2_flow
from .const import API_ENDPOINT from .const import API_ENDPOINT
class AsyncConfigEntryAuth(AbstractAuth): # type: ignore[misc] class AsyncConfigEntryAuth(AbstractAuth):
"""Provide myUplink authentication tied to an OAuth2 based config entry.""" """Provide myUplink authentication tied to an OAuth2 based config entry."""
def __init__( def __init__(

View File

@ -6,5 +6,5 @@
"dependencies": ["application_credentials"], "dependencies": ["application_credentials"],
"documentation": "https://www.home-assistant.io/integrations/myuplink", "documentation": "https://www.home-assistant.io/integrations/myuplink",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"requirements": ["myuplink==0.1.1"] "requirements": ["myuplink==0.2.1"]
} }

View File

@ -1,5 +1,4 @@
"""Update entity for myUplink.""" """Update entity for myUplink."""
from typing import cast
from homeassistant.components.update import ( from homeassistant.components.update import (
UpdateDeviceClass, UpdateDeviceClass,
@ -65,9 +64,9 @@ class MyUplinkDeviceUpdate(MyUplinkEntity, UpdateEntity):
@property @property
def installed_version(self) -> str | None: def installed_version(self) -> str | None:
"""Return installed_version.""" """Return installed_version."""
return cast(str, self.coordinator.data.devices[self.device_id].firmwareCurrent) return self.coordinator.data.devices[self.device_id].firmwareCurrent
@property @property
def latest_version(self) -> str | None: def latest_version(self) -> str | None:
"""Return latest_version.""" """Return latest_version."""
return cast(str, self.coordinator.data.devices[self.device_id].firmwareDesired) return self.coordinator.data.devices[self.device_id].firmwareDesired

View File

@ -1337,7 +1337,7 @@ mutesync==0.0.1
mypermobil==0.1.8 mypermobil==0.1.8
# homeassistant.components.myuplink # homeassistant.components.myuplink
myuplink==0.1.1 myuplink==0.2.1
# homeassistant.components.nad # homeassistant.components.nad
nad-receiver==0.3.0 nad-receiver==0.3.0

View File

@ -1073,7 +1073,7 @@ mutesync==0.0.1
mypermobil==0.1.8 mypermobil==0.1.8
# homeassistant.components.myuplink # homeassistant.components.myuplink
myuplink==0.1.1 myuplink==0.2.1
# homeassistant.components.keenetic_ndms2 # homeassistant.components.keenetic_ndms2
ndms2-client==0.1.2 ndms2-client==0.1.2