From 01570264891d0713c8637ae2fc3a58309e852e93 Mon Sep 17 00:00:00 2001 From: Peter Winkler Date: Mon, 12 Feb 2024 15:33:58 +0100 Subject: [PATCH] Upgrade myuplink package to 0.2.1 (#110343) --- homeassistant/components/myuplink/api.py | 2 +- homeassistant/components/myuplink/manifest.json | 2 +- homeassistant/components/myuplink/update.py | 5 ++--- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/myuplink/api.py b/homeassistant/components/myuplink/api.py index 5d0fcaf521a..1b74d41bc97 100644 --- a/homeassistant/components/myuplink/api.py +++ b/homeassistant/components/myuplink/api.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_entry_oauth2_flow from .const import API_ENDPOINT -class AsyncConfigEntryAuth(AbstractAuth): # type: ignore[misc] +class AsyncConfigEntryAuth(AbstractAuth): """Provide myUplink authentication tied to an OAuth2 based config entry.""" def __init__( diff --git a/homeassistant/components/myuplink/manifest.json b/homeassistant/components/myuplink/manifest.json index c46e4216ee5..0a1d005ad08 100644 --- a/homeassistant/components/myuplink/manifest.json +++ b/homeassistant/components/myuplink/manifest.json @@ -6,5 +6,5 @@ "dependencies": ["application_credentials"], "documentation": "https://www.home-assistant.io/integrations/myuplink", "iot_class": "cloud_polling", - "requirements": ["myuplink==0.1.1"] + "requirements": ["myuplink==0.2.1"] } diff --git a/homeassistant/components/myuplink/update.py b/homeassistant/components/myuplink/update.py index 372beaba456..2b779e83386 100644 --- a/homeassistant/components/myuplink/update.py +++ b/homeassistant/components/myuplink/update.py @@ -1,5 +1,4 @@ """Update entity for myUplink.""" -from typing import cast from homeassistant.components.update import ( UpdateDeviceClass, @@ -65,9 +64,9 @@ class MyUplinkDeviceUpdate(MyUplinkEntity, UpdateEntity): @property def installed_version(self) -> str | None: """Return installed_version.""" - return cast(str, self.coordinator.data.devices[self.device_id].firmwareCurrent) + return self.coordinator.data.devices[self.device_id].firmwareCurrent @property def latest_version(self) -> str | None: """Return latest_version.""" - return cast(str, self.coordinator.data.devices[self.device_id].firmwareDesired) + return self.coordinator.data.devices[self.device_id].firmwareDesired diff --git a/requirements_all.txt b/requirements_all.txt index 32e24cd4f4a..8e4d2d3f2e2 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1337,7 +1337,7 @@ mutesync==0.0.1 mypermobil==0.1.8 # homeassistant.components.myuplink -myuplink==0.1.1 +myuplink==0.2.1 # homeassistant.components.nad nad-receiver==0.3.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 20043da9864..d1a461ede83 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1073,7 +1073,7 @@ mutesync==0.0.1 mypermobil==0.1.8 # homeassistant.components.myuplink -myuplink==0.1.1 +myuplink==0.2.1 # homeassistant.components.keenetic_ndms2 ndms2-client==0.1.2