Skip to content

Commit 3e8d14d

Browse files
authored
Remove LevelControl cluster for IKEA plugs (#3174)
* Add IKEA plug quirk v2 to remove `LevelControl` This removes the `LevelControl` cluster for IKEA TRADFRI and TRETAKT smart plugs, so the config options aren't shown in ZHA. * Remove old tradfriplug quirk This is no longer needed, as the v2 quirk also matches all of these devices.
1 parent 151970c commit 3e8d14d

File tree

2 files changed

+12
-166
lines changed

2 files changed

+12
-166
lines changed

zhaquirks/ikea/plug.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""IKEA plugs quirk."""
2+
from zigpy.quirks.v2 import add_to_registry_v2
3+
from zigpy.zcl.clusters.general import LevelControl
4+
5+
from zhaquirks.ikea import IKEA
6+
7+
# remove LevelControl for plugs to not show config options in ZHA
8+
(
9+
add_to_registry_v2(IKEA, "TRADFRI control outlet")
10+
.also_applies_to(IKEA, "TRETAKT Smart plug")
11+
.removes(LevelControl.cluster_id)
12+
)

zhaquirks/ikea/tradfriplug.py

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)