Skip to content

Commit 594330d

Browse files
committed
Cast async_update() result
1 parent 9f2d79c commit 594330d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugwise/smile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"""
55
from __future__ import annotations
66

7+
from typing import cast
8+
79
import aiohttp
810
from defusedxml import ElementTree as etree
911

@@ -558,7 +560,10 @@ async def async_update(self) -> tuple[GatewayData, dict[str, DeviceData]]:
558560
# Update for cooling
559561
self.update_for_cooling(dev_dict)
560562

561-
return (self.gw_data, self.gw_devices)
563+
return (
564+
cast(GatewayData, self.gw_data),
565+
cast(dict[str, DeviceData], self.gw_devices),
566+
)
562567

563568
async def _set_schedule_state_legacy(
564569
self, loc_id: str, name: str, status: str

0 commit comments

Comments
 (0)