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 85ba4f2 commit 68fb72dCopy full SHA for 68fb72d
plugwise/helper.py
@@ -80,9 +80,7 @@ def etree_to_dict(element: etree) -> dict[str, str]:
80
"""Helper-function translating xml Element to dict."""
81
node: dict[str, str] = {}
82
83
- if (text := getattr(element, "text", None)) is not None:
84
- node["text"] = text
85
-
+ text = getattr(element, "text", None)
86
if element is not None:
87
node.update(element.items())
88
0 commit comments