Ignore the mistaken long_click event of the 86sw (Closes: #14694) (#14785)

This commit is contained in:
Sebastian Muszynski 2018-06-03 11:54:03 +02:00 committed by Daniel Høyer Iversen
parent 12e679c14d
commit 1ac3f0da63

View File

@ -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