Skip to content

Commit 2041ff7

Browse files
committed
Block attrib @-prefix
1 parent b548ce9 commit 2041ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def connect(self) -> Version:
121121
"""Connect to the Plugwise Gateway and determine its name, type, version, and other data."""
122122
result = await self._request(DOMAIN_OBJECTS)
123123
result_str = etree.tostring(result, encoding="utf-8", method="xml")
124-
result_dict = dict(xmltodict.parse(result_str))
124+
result_dict = dict(xmltodict.parse(result_str, attr_prefix=""))
125125
LOGGER.debug("HOI result_dict: %s", json.dumps(result_dict, indent=4))
126126
# Work-around for Stretch fw 2.7.18
127127
if not (vendor_names := result.findall("./module/vendor_name")):

0 commit comments

Comments
 (0)