File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- """IKEA TRADFRI and TRETAKT plugs quirk."""
1+ """IKEA TRADFRI plugs quirk."""
22
33from zigpy .quirks .v2 import QuirkBuilder
44from zigpy .zcl .clusters .general import LevelControl
55
66from zhaquirks .ikea import IKEA
77
88# remove LevelControl for plug to not show config options in ZHA
9- # TRETAKT likely also has Child Lock and LED control, see INSPELNING
109(
1110 QuirkBuilder (IKEA , "TRADFRI control outlet" )
12- .also_applies_to (IKEA , "TRETAKT Smart plug" )
1311 .removes (LevelControl .cluster_id )
1412 .add_to_registry ()
1513)
Original file line number Diff line number Diff line change 1- """IKEA INSPELNING plug quirk."""
1+ """IKEA INSPELNING and TRETAKT plug quirk."""
22
33from zigpy .quirks .v2 import CustomCluster , QuirkBuilder
44import zigpy .types as t
@@ -29,6 +29,7 @@ class AttributeDefs(BaseAttributeDefs):
2929# remove LevelControl for plugs to not show config options in ZHA
3030(
3131 QuirkBuilder (IKEA , "INSPELNING Smart plug" )
32+ .applies_to (IKEA , "TRETAKT Smart plug" )
3233 .removes (LevelControl .cluster_id )
3334 .replaces (IkeaSmartPlugCluster )
3435 .switch (
You can’t perform that action at this time.
0 commit comments