Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/binary_sensor/xiaomi_aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ def parse_data(self, data, raw_data):
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)
Expand Down