mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Add a new click_type "long_both" to improve the support of the new Xiaomi Wireless Wall Switch (remote.b286acn01) (#19573)
This commit is contained in:
parent
a6e091f60f
commit
dc11e41cf0
@ -414,7 +414,7 @@ class XiaomiButton(XiaomiBinarySensor):
|
||||
elif value == 'long_click':
|
||||
click_type = 'long'
|
||||
elif value == 'long_both_click':
|
||||
return False
|
||||
click_type = 'long_both'
|
||||
else:
|
||||
_LOGGER.warning("Unsupported click_type detected: %s", value)
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user