Skip to content

Commit c43d804

Browse files
committed
Filter template, ame_regulation
1 parent 2041ff7 commit c43d804

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ async def connect(self) -> Version:
122122
result = await self._request(DOMAIN_OBJECTS)
123123
result_str = etree.tostring(result, encoding="utf-8", method="xml")
124124
result_dict = dict(xmltodict.parse(result_str, attr_prefix=""))
125+
for key in ["ame_regulation", "template"]:
126+
result_dict["domain_objects"].pop(key, None)
125127
LOGGER.debug("HOI result_dict: %s", json.dumps(result_dict, indent=4))
126128
# Work-around for Stretch fw 2.7.18
127129
if not (vendor_names := result.findall("./module/vendor_name")):

0 commit comments

Comments
 (0)