plugwise 1.3.1__py3-none-any.whl → 1.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
plugwise/__init__.py CHANGED
@@ -85,6 +85,7 @@ class Smile(SmileComm):
85
85
  self.smile_legacy = False
86
86
  self.smile_mac_address: str | None = None
87
87
  self.smile_model: str = NONE
88
+ self.smile_model_id: str | None = None
88
89
  self.smile_name: str = NONE
89
90
  self.smile_type: str = NONE
90
91
  self.smile_version: str = NONE
@@ -145,6 +146,7 @@ class Smile(SmileComm):
145
146
  self.smile_hw_version,
146
147
  self.smile_mac_address,
147
148
  self.smile_model,
149
+ self.smile_model_id,
148
150
  self.smile_name,
149
151
  self.smile_type,
150
152
  self._user,
@@ -190,6 +192,7 @@ class Smile(SmileComm):
190
192
  self.smile_hw_version = gateway.find("hardware_version").text
191
193
  self.smile_hostname = gateway.find("hostname").text
192
194
  self.smile_mac_address = gateway.find("mac_address").text
195
+ self.smile_model_id = gateway.find("vendor_model").text
193
196
  else:
194
197
  model = await self._smile_detect_legacy(result, dsmrmain, model)
195
198
 
plugwise/constants.py CHANGED
@@ -518,7 +518,7 @@ class DeviceData(TypedDict, total=False):
518
518
  mac_address: str
519
519
  members: list[str]
520
520
  model: str
521
- model_id: str
521
+ model_id: str | None
522
522
  name: str
523
523
  vendor: str
524
524
  zigbee_mac_address: str
plugwise/helper.py CHANGED
@@ -254,6 +254,7 @@ class SmileHelper(SmileCommon):
254
254
  self.smile_hw_version: str | None
255
255
  self.smile_mac_address: str | None
256
256
  self.smile_model: str
257
+ self.smile_model_id: str | None
257
258
  self.smile_name: str
258
259
  self.smile_type: str
259
260
  self.smile_zigbee_mac_address: str | None
@@ -351,7 +352,7 @@ class SmileHelper(SmileCommon):
351
352
  appl.dev_id = self.gateway_id
352
353
  appl.location = loc_id
353
354
  appl.mac = None
354
- appl.model = self._domain_objects.find("./gateway/vendor_model").text
355
+ appl.model = None
355
356
  appl.model_id = None
356
357
  appl.name = "P1"
357
358
  appl.pwclass = "smartmeter"
@@ -421,7 +422,7 @@ class SmileHelper(SmileCommon):
421
422
  appl.hardware = self.smile_hw_version
422
423
  appl.mac = self.smile_mac_address
423
424
  appl.model = self.smile_model
424
- appl.model_id = self._domain_objects.find("./gateway/vendor_model").text
425
+ appl.model_id = self.smile_model_id
425
426
  appl.name = self.smile_name
426
427
  appl.vendor_name = "Plugwise"
427
428
 
plugwise/smile.py CHANGED
@@ -62,6 +62,7 @@ class SmileAPI(SmileComm, SmileData):
62
62
  smile_hw_version: str | None,
63
63
  smile_mac_address: str | None,
64
64
  smile_model: str,
65
+ smile_model_id: str | None,
65
66
  smile_name: str,
66
67
  smile_type: str,
67
68
  username: str = DEFAULT_USERNAME,
@@ -93,6 +94,7 @@ class SmileAPI(SmileComm, SmileData):
93
94
  self.smile_hw_version = smile_hw_version
94
95
  self.smile_mac_address = smile_mac_address
95
96
  self.smile_model = smile_model
97
+ self.smile_model_id = smile_model_id
96
98
  self.smile_name = smile_name
97
99
  self.smile_type = smile_type
98
100
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plugwise
3
- Version: 1.3.1
3
+ Version: 1.4.0
4
4
  Summary: Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3.
5
5
  Home-page: https://github.com/plugwise/python-plugwise
6
6
  Author: Plugwise device owners
@@ -1,17 +1,17 @@
1
- plugwise/__init__.py,sha256=EXiTp-N8kQqOUAaczDbULS176NwA2C1FcfWiKkBzNdI,16887
1
+ plugwise/__init__.py,sha256=wA-xl4Cd2mioaKhP31D6dHNu-CM2X-5n8TlQbSIra3k,17035
2
2
  plugwise/common.py,sha256=geZd-kVQ0F1OTJoUd2WMPxNBVpSLgZ2ID_47ainOMnk,12746
3
- plugwise/constants.py,sha256=EUmKOrkRPBPlQ_orKFLcOm6GNpvaDrva5vqxvUolqTk,16735
3
+ plugwise/constants.py,sha256=kVNrr4zeKFMiGBogVLZ6B925FHAIgy1PY2BBxaT1vkk,16742
4
4
  plugwise/data.py,sha256=I4w3ABqmcj_uSnfxTWPYQH8WP6HaywVMx1aQ-feBdU0,10734
5
5
  plugwise/exceptions.py,sha256=Ce-tO9uNsMB-8FP6VAxBvsHNJ-NIM9F0onUZOdZI4Ys,1110
6
- plugwise/helper.py,sha256=2oSUV2Wj0LkfhAvfXwMvfDrJ9x5SWlen4IVCs4twYSU,44123
6
+ plugwise/helper.py,sha256=05dG0FYCBNwO10P5l7LfeouO5Jrs8i-e0jzftZbgFIw,44074
7
7
  plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- plugwise/smile.py,sha256=TyDXl1NSMFxsZehtopawpYpL6vie3NM3gVcez_bfjvA,18681
8
+ plugwise/smile.py,sha256=QEztzHr3dzwoZv6lgXKZqDwwCy4WD-2LlS5FhWBHk48,18762
9
9
  plugwise/util.py,sha256=lCasQDzYO3CNAIHbLKTK16YJxQKoBrTQkJ1nCMmF17g,8006
10
10
  plugwise/legacy/data.py,sha256=DsHR9xgiFDg_Vh_6ZpOskw8ZhNQ3CmwjstI3yiH6MEk,3048
11
11
  plugwise/legacy/helper.py,sha256=7QCJyaR9FaM4EEQxGt2oFJac6Pu5OKoi_LG_GQKzRs4,18012
12
12
  plugwise/legacy/smile.py,sha256=7oaPZuvxrYRvoA8qWFvtWSwQRFfQl1XXpPjWXn3_xFs,11314
13
- plugwise-1.3.1.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
14
- plugwise-1.3.1.dist-info/METADATA,sha256=UJUJqbHEyMMJMBVmK2M81sMDofmaWkIBaYzyGLSHxqc,9097
15
- plugwise-1.3.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
16
- plugwise-1.3.1.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
17
- plugwise-1.3.1.dist-info/RECORD,,
13
+ plugwise-1.4.0.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
14
+ plugwise-1.4.0.dist-info/METADATA,sha256=EZRtW9L6vE2vrmMPW9FIDyX1jm4_R2oSjDx6gBAZP2w,9097
15
+ plugwise-1.4.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
16
+ plugwise-1.4.0.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
17
+ plugwise-1.4.0.dist-info/RECORD,,