Skip to content

Commit 3150ae0

Browse files
committed
Adapt code in helper.py
1 parent b572cc7 commit 3150ae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def _p1_smartmeter_info_finder(self, appl: Munch) -> None:
351351
appl.dev_id = self.gateway_id
352352
appl.location = loc_id
353353
appl.mac = None
354-
appl.model = self._domain_objects.find("./gateway/vendor_model").text
354+
appl.model = None
355355
appl.model_id = None
356356
appl.name = "P1"
357357
appl.pwclass = "smartmeter"
@@ -421,7 +421,7 @@ def _appl_gateway_info(self, appl: Munch, appliance: etree) -> Munch:
421421
appl.hardware = self.smile_hw_version
422422
appl.mac = self.smile_mac_address
423423
appl.model = self.smile_model
424-
appl.model_id = self._domain_objects.find("./gateway/vendor_model").text
424+
appl.model_id = self.smile_model_id
425425
appl.name = self.smile_name
426426
appl.vendor_name = "Plugwise"
427427

0 commit comments

Comments
 (0)