Skip to content

Commit 5abb7ab

Browse files
committed
Try 9
1 parent 5c5e653 commit 5abb7ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def _get_p1_smartmeter_info(self) -> None:
364364

365365
# Replace the entity_id of the gateway by the smartmeter location_id
366366
self.gw_entities[self._home_loc_id] = self.gw_entities.pop(self._gateway_id["gateway_id"])
367-
self._gateway_id = {"gateway_id": self._home_loc_id}
367+
self._gateway_id["gateway_id"] = self._home_loc_id
368368

369369
self._create_gw_entities(appl)
370370

@@ -437,7 +437,7 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree) -> Munch:
437437

438438
def _appl_gateway_info(self, appl: Munch, appliance: etree) -> Munch:
439439
"""Helper-function for _appliance_info_finder()."""
440-
self._gateway_id = {"gateway_id": appliance.attrib["id"]}
440+
self._gateway_id["gateway_id"] = appliance.attrib["id"]
441441
appl.firmware = str(self.smile_fw_version)
442442
appl.hardware = self.smile_hw_version
443443
appl.mac = self.smile_mac_address

0 commit comments

Comments
 (0)