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 press and release event support #60

Merged
merged 8 commits into from
Apr 22, 2024

Conversation

bolkedebruin
Copy link
Contributor

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 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.
@P-Storm
Copy link
Contributor

P-Storm commented Apr 12, 2024

Otherwise, looking good. Also nice that you grouped the topics to one space 👍

@koenhendriks koenhendriks self-requested a review April 13, 2024 19:47
Copy link
Owner

@koenhendriks koenhendriks left a 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

@bolkedebruin
Copy link
Contributor Author

Done

@bolkedebruin
Copy link
Contributor Author

ping @koenhendriks :-)

Copy link
Owner

@koenhendriks koenhendriks left a 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.

@koenhendriks koenhendriks merged commit 6e69da2 into koenhendriks:main Apr 22, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants