We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205265e commit 05fc576Copy full SHA for 05fc576
1 file changed
plugwise/helper.py
@@ -64,6 +64,7 @@ def extend_plug_device_class(appl: Munch, appliance: etree.Element) -> None:
64
(search := appliance.find("description")) is not None
65
and (description := search.text) is not None
66
and ("ZigBee protocol" in description or "smart plug" in description)
67
+ and not appl.pwclass.endswith("_plug")
68
):
69
appl.pwclass = f"{appl.pwclass}_plug"
70
0 commit comments