Update aioqsw to 0.0.8 (#71640)

Implements PEP 561, which allows to remove coordinator cast.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
pull/70980/head
Álvaro Fernández Rojas 2022-05-10 16:48:26 +02:00 committed by GitHub
parent ef16e6c129
commit c994d06967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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"]

View File

@ -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

View File

@ -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