Skip to content

Commit 29a1abf

Browse files
authored
Update devices.py
1 parent 9b2c588 commit 29a1abf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,13 +3514,13 @@
35143514
"spec": [
35153515
BaseConv("left_switch", "switch", mi="2.p.1"),
35163516
BaseConv("right_switch", "switch", mi="3.p.1"),
3517-
BaseConv("switch_action", "sensor"),
3518-
ConstConv("switch_action", mi="12.e.1", value=BUTTON_1_SINGLE),
3519-
ConstConv("switch_action", mi="12.e.2", value=BUTTON_1_DOUBLE),
3520-
ConstConv("switch_action", mi="12.e.3", value=BUTTON_1_HOLD),
3521-
ConstConv("switch_action", mi="13.e.1", value=BUTTON_2_SINGLE),
3522-
ConstConv("switch_action", mi="13.e.2", value=BUTTON_2_DOUBLE),
3523-
ConstConv("switch_action", mi="13.e.3", value=BUTTON_2_HOLD),
3517+
BaseConv("action", "sensor"),
3518+
ConstConv("action", mi="12.e.1", value=BUTTON_1_SINGLE),
3519+
ConstConv("action", mi="12.e.2", value=BUTTON_1_DOUBLE),
3520+
ConstConv("action", mi="12.e.3", value=BUTTON_1_HOLD),
3521+
ConstConv("action", mi="13.e.1", value=BUTTON_2_SINGLE),
3522+
ConstConv("action", mi="13.e.2", value=BUTTON_2_DOUBLE),
3523+
ConstConv("action", mi="13.e.3", value=BUTTON_2_HOLD),
35243524
MapConv("left_switch_mode", "select", mi="2.p.2", map={0: "Normal", 1: "Wireless", 2: "Flex", 3: "Toggle", 4: "Normal+Wireless"}),
35253525
MapConv("right_switch_mode", "select", mi="3.p.2", map={ 0: "Normal", 1: "Wireless", 2: "Flex", 3: "Toggle", 4: "Normal+Wireless"}),
35263526
MapConv("power_on_state_left_switch", "select", mi="2.p.3", map={0: "Off", 1: "On", 2: "Default"}),

0 commit comments

Comments
 (0)