Skip to content

Commit 2d8a5e8

Browse files
committed
Don't get appliance id twice
1 parent 6e8a497 commit 2d8a5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch
272272

273273
def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch:
274274
"""Helper-function for _appliance_info_finder()."""
275-
self._gateway_id = appliance.get("id")
275+
self._gateway_id = appl.entity_id
276276
appl.firmware = str(self.smile.version)
277277
appl.hardware = self.smile.hw_version
278278
appl.mac = self.smile.mac_address

0 commit comments

Comments
 (0)