Skip to content

Commit 1af73ef

Browse files
committed
Revert "Create special _find() function"
This reverts commit 5e708ff.
1 parent d9e9fa0 commit 1af73ef

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

plugwise/helper.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
InvalidAuthentication,
6464
InvalidXMLError,
6565
ResponseError,
66-
XMLDataMissingError,
6766
)
6867
from .util import (
6968
escape_illegal_xml_characters,
@@ -73,17 +72,6 @@
7372
)
7473

7574

76-
def _find(xml_in: etree, locator: str) -> list[str]:
77-
"""Helper-function for use of etree.find()."""
78-
if xml_in is not None:
79-
if (found := xml_in.find(locator)) is not None:
80-
return found
81-
82-
return None
83-
84-
raise XMLDataMissingError()
85-
86-
8775
def update_helper(
8876
data: DeviceDataPoints,
8977
devices: dict[str, DeviceData],

0 commit comments

Comments
 (0)