Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long click at new Aqara Wireless Remote Switch #19518

Merged
merged 2 commits into from Dec 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/binary_sensor/xiaomi_aqara.py
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