mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
This commit is contained in:
parent
12e679c14d
commit
1ac3f0da63
@ -330,6 +330,8 @@ class XiaomiButton(XiaomiBinarySensor):
|
|||||||
click_type = 'both'
|
click_type = 'both'
|
||||||
elif value == 'shake':
|
elif value == 'shake':
|
||||||
click_type = 'shake'
|
click_type = 'shake'
|
||||||
|
elif value == 'long_click':
|
||||||
|
return False
|
||||||
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