mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
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>
This commit is contained in:
parent
ef16e6c129
commit
c994d06967
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, cast
|
from typing import Any
|
||||||
|
|
||||||
from aioqsw.exceptions import QswError
|
from aioqsw.exceptions import QswError
|
||||||
from aioqsw.localapi import QnapQswApi
|
from aioqsw.localapi import QnapQswApi
|
||||||
@ -40,4 +40,4 @@ class QswUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
await self.qsw.update()
|
await self.qsw.update()
|
||||||
except QswError as error:
|
except QswError as error:
|
||||||
raise UpdateFailed(error) from 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",
|
"name": "QNAP QSW",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/qnap_qsw",
|
"documentation": "https://www.home-assistant.io/integrations/qnap_qsw",
|
||||||
"requirements": ["aioqsw==0.0.7"],
|
"requirements": ["aioqsw==0.0.8"],
|
||||||
"codeowners": ["@Noltari"],
|
"codeowners": ["@Noltari"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["aioqsw"]
|
"loggers": ["aioqsw"]
|
||||||
|
@ -226,7 +226,7 @@ aiopvpc==3.0.0
|
|||||||
aiopyarr==22.2.2
|
aiopyarr==22.2.2
|
||||||
|
|
||||||
# homeassistant.components.qnap_qsw
|
# homeassistant.components.qnap_qsw
|
||||||
aioqsw==0.0.7
|
aioqsw==0.0.8
|
||||||
|
|
||||||
# homeassistant.components.recollect_waste
|
# homeassistant.components.recollect_waste
|
||||||
aiorecollect==1.0.8
|
aiorecollect==1.0.8
|
||||||
|
@ -192,7 +192,7 @@ aiopvpc==3.0.0
|
|||||||
aiopyarr==22.2.2
|
aiopyarr==22.2.2
|
||||||
|
|
||||||
# homeassistant.components.qnap_qsw
|
# homeassistant.components.qnap_qsw
|
||||||
aioqsw==0.0.7
|
aioqsw==0.0.8
|
||||||
|
|
||||||
# homeassistant.components.recollect_waste
|
# homeassistant.components.recollect_waste
|
||||||
aiorecollect==1.0.8
|
aiorecollect==1.0.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user