We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4c44d commit e24bf38Copy full SHA for e24bf38
plugwise/common.py
@@ -123,7 +123,7 @@ def _get_module_data(
123
loc = f".//{mod_type}[@id='{link_id}']...."
124
# Not possible to walrus for some reason...
125
# xml_2: self._modules for legacy, self._domain_objects for actual
126
- search = xml_2 or self._domain_objects
+ search = return_valid(xml_2, self._domain_objects)
127
module = search.find(loc)
128
if module is not None: # pylint: disable=consider-using-assignment-expr
129
model_data["contents"] = True
0 commit comments