Skip to content

Commit 822dff2

Browse files
committed
Check xml
1 parent a6a04e7 commit 822dff2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ 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-
result_dict = xmltodict.parse(DOMAIN_OBJECTS)
123-
LOGGER.debug("HOI result_dict: %s", result_dict)
122+
LOGGER.debug("HOI result: %s", result)
123+
# result_dict = xmltodict.parse(DOMAIN_OBJECTS)
124+
# LOGGER.debug("HOI result_dict: %s", result_dict)
124125
# Work-around for Stretch fw 2.7.18
125126
if not (vendor_names := result.findall("./module/vendor_name")):
126127
result = await self._request(MODULES)

0 commit comments

Comments
 (0)