Skip to content

Commit 1983451

Browse files
committed
Try 2
1 parent 0460c31 commit 1983451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def reboot(self) -> bool:
119119
async def connect(self) -> Version:
120120
"""Connect to the Plugwise Gateway and determine its name, type, version, and other data."""
121121
result = await self._request(DOMAIN_OBJECTS)
122-
LOGGER.debug("HOI result: %s", result)
123-
result_dict = xmltodict.parse(DOMAIN_OBJECTS)
122+
result_str = etree.tostring(result, encoding='utf-8', method='xml')
123+
result_dict = dict(xmltodict.parse(result_str))
124124
LOGGER.debug("HOI result_dict: %s", result_dict)
125125
# Work-around for Stretch fw 2.7.18
126126
if not (vendor_names := result.findall("./module/vendor_name")):

0 commit comments

Comments
 (0)