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:
Sebastian Muszynski 2018-12-26 14:16:53 +01:00 committed by Fabian Affolter
parent a6e091f60f
commit dc11e41cf0

View File

@ -414,7 +414,7 @@ class XiaomiButton(XiaomiBinarySensor):
elif value == 'long_click':
click_type = 'long'
elif value == 'long_both_click':
return False
click_type = 'long_both'
else:
_LOGGER.warning("Unsupported click_type detected: %s", value)
return False