Skip to content

Commit 71574dd

Browse files
authored
Merge pull request #260 from plugwise/strict-typing
Strict typing
2 parents 9f2d79c + 7ee1a3e commit 71574dd

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
# v0.27.2: Strict-typing
4+
35
# v0.27.1: More cooling-related updates, based on additional info from Plugwise
46
- Updates for Anna+Elga and Adam-OnOff systems
57
- Loria/Thermastage fix

plugwise/smile.py

Lines changed: 3 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,7 @@ 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 (cast(GatewayData, self.gw_data), self.gw_devices)
562564

563565
async def _set_schedule_state_legacy(
564566
self, loc_id: str, name: str, status: str

py.typed

Whitespace-only changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise"
7-
version = "0.27.1"
7+
version = "0.27.2"
88
license = {file = "LICENSE"}
99
description = "Plugwise Smile (Adam/Anna/P1), Stretch and USB (Stick) module for Python 3."
1010
readme = "README.md"

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
from setuptools import setup
44

5-
setup()
5+
setup(
6+
package_data={"plugwise": ["py.typed"]},
7+
)

0 commit comments

Comments
 (0)