mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 19:55:10 +02:00
This commit is contained in:
committed by
Daniel Høyer Iversen
parent
12e679c14d
commit
1ac3f0da63
@@ -330,6 +330,8 @@ class XiaomiButton(XiaomiBinarySensor):
|
||||
click_type = 'both'
|
||||
elif value == 'shake':
|
||||
click_type = 'shake'
|
||||
elif value == 'long_click':
|
||||
return False
|
||||
else:
|
||||
_LOGGER.warning("Unsupported click_type detected: %s", value)
|
||||
return False
|
||||
|
Reference in New Issue
Block a user