-
Notifications
You must be signed in to change notification settings - Fork 7
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 press and release event support #60
Conversation
This adds long press support and basic for release event support. This is done by overriding @Final methods of homeassistant's button for which it is unclear why they are marked as such. Attributes for type of click are now set to "long" for a long press and "single" for a short press.
This reverts commit fd10e3a.
Otherwise, looking good. Also nice that you grouped the topics to one space 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you take a look at the CI errors?
Error: R] [SERVICES] Service long_press has no name and is not in the translations file
Error: R] [SERVICES] Service release has no name and is not in the translations file
Error: R] [TRANSLATIONS] Invalid strings.json: extra keys not allowed @ data['config']['services']. Got {'long_press': {'name': 'Long press', 'description': 'Long press on a button on button+'}, 'release': {'name': 'Release', 'description': 'Release of a button on button+'}}
required key not provided @ data['config']['step']. Got None
Done |
ping @koenhendriks :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't been able to setup my development environment yet since I've moved, sorry for the delay. I'm reviewing this without feature tests now.
This adds long press support and basic for release event support. This is done by overriding @Final
methods of homeassistant's button for which it is
unclear why they are marked as such.
Attributes for type of click are now set to "long" for a long press and "single" for a short press.