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 ab8ee50 commit 19be354Copy full SHA for 19be354
plugwise/helper.py
@@ -82,6 +82,15 @@ def _find(xml_in: etree, locator: str) -> etree:
82
raise XMLDataMissingError
83
84
85
+def _findall(xml_in: etree, locator: str) -> list[etree]:
86
+ """Helper-function for use of etree.findall()."""
87
+ if xml_in is not None:
88
+ return xml_in.findall(locator)
89
+
90
+ LOGGER.error("XML data unexpectedly not found, processing stopped!")
91
+ raise XMLDataMissingError
92
93
94
def update_helper(
95
data: DeviceDataPoints,
96
devices: dict[str, DeviceData],
0 commit comments