Skip to content

Commit 9294556

Browse files
authored
Merge pull request #841 from plugwise/optimize-5
Optimize part 5
2 parents 6e8a497 + 21f7069 commit 9294556

File tree

4 files changed

+2051
-1659
lines changed

4 files changed

+2051
-1659
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## Ongoing
3+
## v1.11.1
44

5-
- Code optimizations via PR [#837](https://github.com/plugwise/python-plugwise/pull/837), [#838](https://github.com/plugwise/python-plugwise/pull/838), [#839](https://github.com/plugwise/python-plugwise/pull/839), [#840](https://github.com/plugwise/python-plugwise/pull/840)
5+
- Code optimizations via PR [#837](https://github.com/plugwise/python-plugwise/pull/837), [#838](https://github.com/plugwise/python-plugwise/pull/838), [#839](https://github.com/plugwise/python-plugwise/pull/839), [#840](https://github.com/plugwise/python-plugwise/pull/840), and [#841](https://github.com/plugwise/python-plugwise/pull/841)
66

77
## v1.11.0
88

plugwise/helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ 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")
276-
appl.firmware = str(self.smile.version)
275+
self._gateway_id = appl.entity_id
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise"
7-
version = "1.11.0"
7+
version = "1.11.1"
88
license = "MIT"
99
description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)