From c994d06967975a63a9b43ef0f1dc30cfd49432c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 10 May 2022 16:48:26 +0200 Subject: [PATCH] Update aioqsw to 0.0.8 (#71640) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements PEP 561, which allows to remove coordinator cast. Signed-off-by: Álvaro Fernández Rojas --- homeassistant/components/qnap_qsw/coordinator.py | 4 ++-- homeassistant/components/qnap_qsw/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/qnap_qsw/coordinator.py b/homeassistant/components/qnap_qsw/coordinator.py index 7aa1b6f0a85..c018c1f3848 100644 --- a/homeassistant/components/qnap_qsw/coordinator.py +++ b/homeassistant/components/qnap_qsw/coordinator.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import timedelta import logging -from typing import Any, cast +from typing import Any from aioqsw.exceptions import QswError from aioqsw.localapi import QnapQswApi @@ -40,4 +40,4 @@ class QswUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]): await self.qsw.update() except QswError as error: raise UpdateFailed(error) from error - return cast(dict[str, Any], self.qsw.data()) + return self.qsw.data() diff --git a/homeassistant/components/qnap_qsw/manifest.json b/homeassistant/components/qnap_qsw/manifest.json index 0624edd000c..9331a7df468 100644 --- a/homeassistant/components/qnap_qsw/manifest.json +++ b/homeassistant/components/qnap_qsw/manifest.json @@ -3,7 +3,7 @@ "name": "QNAP QSW", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/qnap_qsw", - "requirements": ["aioqsw==0.0.7"], + "requirements": ["aioqsw==0.0.8"], "codeowners": ["@Noltari"], "iot_class": "local_polling", "loggers": ["aioqsw"] diff --git a/requirements_all.txt b/requirements_all.txt index 69fed66566e..9f3f4b00e33 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -226,7 +226,7 @@ aiopvpc==3.0.0 aiopyarr==22.2.2 # homeassistant.components.qnap_qsw -aioqsw==0.0.7 +aioqsw==0.0.8 # homeassistant.components.recollect_waste aiorecollect==1.0.8 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 6bc7b31420d..8104911a6ec 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -192,7 +192,7 @@ aiopvpc==3.0.0 aiopyarr==22.2.2 # homeassistant.components.qnap_qsw -aioqsw==0.0.7 +aioqsw==0.0.8 # homeassistant.components.recollect_waste aiorecollect==1.0.8