Skip to content

Commit e24bf38

Browse files
committed
Add missed return_valid()
1 parent be4c44d commit e24bf38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _get_module_data(
123123
loc = f".//{mod_type}[@id='{link_id}']...."
124124
# Not possible to walrus for some reason...
125125
# xml_2: self._modules for legacy, self._domain_objects for actual
126-
search = xml_2 or self._domain_objects
126+
search = return_valid(xml_2, self._domain_objects)
127127
module = search.find(loc)
128128
if module is not None: # pylint: disable=consider-using-assignment-expr
129129
model_data["contents"] = True

0 commit comments

Comments
 (0)