Skip to content

Commit a9135ab

Browse files
committed
Get gateway firmware at every update
1 parent 2d8a5e8 commit a9135ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch
273273
def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch:
274274
"""Helper-function for _appliance_info_finder()."""
275275
self._gateway_id = appl.entity_id
276-
appl.firmware = str(self.smile.version)
276+
locator = "./gateway/firmware_version"
277+
appl.firmware = self._domain_objects.find(locator).text
277278
appl.hardware = self.smile.hw_version
278279
appl.mac = self.smile.mac_address
279280
appl.model = self.smile.model

0 commit comments

Comments
 (0)