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
parent
ef16e6c129
commit
c994d06967
|
@ -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()
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue