Add long click at new Aqara Wireless Remote Switch (#19518)
New Aqara Wireless Remote Switch Single supports long click.
This commit is contained in:
parent
ef53a2d118
commit
07b6aaec63
1 changed files with 3 additions and 1 deletions
|
@ -411,7 +411,9 @@ class XiaomiButton(XiaomiBinarySensor):
|
|||
click_type = 'both'
|
||||
elif value == 'shake':
|
||||
click_type = 'shake'
|
||||
elif value in ['long_click', 'long_both_click']:
|
||||
elif value == 'long_click':
|
||||
click_type = 'long'
|
||||
elif value == 'long_both_click':
|
||||
return False
|
||||
else:
|
||||
_LOGGER.warning("Unsupported click_type detected: %s", value)
|
||||
|
|
Loading…
Add table
Reference in a new issue