Skip to content

Commit eb74fc2

Browse files
committed
Fix PTX AKPRO3 switch function
It should be HOLD, not DOUBLE. This switch didn't have DOUBLE function.
1 parent 2c0d57f commit eb74fc2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,14 +4033,11 @@
40334033
MapConv("mode_3", "select", mi="4.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
40344034
BaseConv("action", "sensor"),
40354035
ConstConv("action", mi="5.e.1", value=BUTTON_1_SINGLE),
4036-
ConstConv("action", mi="5.e.2", value=BUTTON_1_DOUBLE),
4037-
ConstConv("action", mi="5.e.3", value=BUTTON_1_HOLD),
4036+
ConstConv("action", mi="5.e.2", value=BUTTON_1_HOLD),
40384037
ConstConv("action", mi="6.e.1", value=BUTTON_2_SINGLE),
4039-
ConstConv("action", mi="6.e.2", value=BUTTON_2_DOUBLE),
4040-
ConstConv("action", mi="6.e.3", value=BUTTON_2_HOLD),
4038+
ConstConv("action", mi="6.e.2", value=BUTTON_2_HOLD),
40414039
ConstConv("action", mi="7.e.1", value=BUTTON_3_SINGLE),
4042-
ConstConv("action", mi="7.e.2", value=BUTTON_3_DOUBLE),
4043-
ConstConv("action", mi="7.e.3", value=BUTTON_3_HOLD),
4040+
ConstConv("action", mi="7.e.2", value=BUTTON_3_HOLD),
40444041
],
40454042
}, {
40464043
17944: ["PTX", "PTX Wall Switch", "090615.switch.akpro2"],

0 commit comments

Comments
 (0)