mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Add a new click_type double_both to improve the support of the new Xiaomi aqara remote.b286acn01 dual switch. (#19578)
This commit is contained in:
committed by
Sebastian Muszynski
parent
70fff26383
commit
54f6cfd569
@@ -409,6 +409,8 @@ class XiaomiButton(XiaomiBinarySensor):
|
|||||||
click_type = 'double'
|
click_type = 'double'
|
||||||
elif value == 'both_click':
|
elif value == 'both_click':
|
||||||
click_type = 'both'
|
click_type = 'both'
|
||||||
|
elif value == 'double_both_click':
|
||||||
|
click_type = 'double_both'
|
||||||
elif value == 'shake':
|
elif value == 'shake':
|
||||||
click_type = 'shake'
|
click_type = 'shake'
|
||||||
elif value == 'long_click':
|
elif value == 'long_click':
|
||||||
|
Reference in New Issue
Block a user