Skip to content

Commit 51d2651

Browse files
committed
Convert xml to dict with debug
1 parent abf63f2 commit 51d2651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from __future__ import annotations
77

8+
import xmltodict
89
from typing import cast
910

1011
from plugwise.constants import (
@@ -118,6 +119,8 @@ def reboot(self) -> bool:
118119
async def connect(self) -> Version:
119120
"""Connect to the Plugwise Gateway and determine its name, type, version, and other data."""
120121
result = await self._request(DOMAIN_OBJECTS)
122+
result_dict = xmltodict.parse(result)
123+
LOGGER.debug("HOI result_dict: %s", result_dict)
121124
# Work-around for Stretch fw 2.7.18
122125
if not (vendor_names := result.findall("./module/vendor_name")):
123126
result = await self._request(MODULES)

0 commit comments

Comments
 (0)