Skip to content

Commit bbd1e00

Browse files
authored
Merge pull request #617 from plugwise/fix-model_id_typing
Add/correct typing
2 parents d3d2e28 + 46c17ae commit bbd1e00

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

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

3+
## v1.3.1
4+
5+
- Add missing typing for model_id.
6+
37
## v1.3.0
48

59
- New Feature: add device model_id's to the API output (not for legacy devices).

plugwise/constants.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
"mac_address",
253253
"members",
254254
"model",
255+
"model_id",
255256
"name",
256257
"vendor",
257258
"zigbee_mac_address",
@@ -511,15 +512,16 @@ class DeviceData(TypedDict, total=False):
511512

512513
# Appliance base data
513514
dev_class: str
514-
firmware: str | None
515+
firmware: str
515516
hardware: str
516517
location: str
517-
mac_address: str | None
518+
mac_address: str
518519
members: list[str]
519520
model: str
521+
model_id: str
520522
name: str
521523
vendor: str
522-
zigbee_mac_address: str | None
524+
zigbee_mac_address: str
523525

524526
# For temporary use
525527
cooling_enabled: bool

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 = "1.3.0"
7+
version = "1.3.1"
88
license = {file = "LICENSE"}
99
description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)