mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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':
|
elif value == 'long_click':
|
||||||
click_type = 'long'
|
click_type = 'long'
|
||||||
elif value == 'long_both_click':
|
elif value == 'long_both_click':
|
||||||
return False
|
click_type = 'long_both'
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning("Unsupported click_type detected: %s", value)
|
_LOGGER.warning("Unsupported click_type detected: %s", value)
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user