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

Create script to generate notification enums and check if git is dirty #773

Merged
merged 14 commits into from
Oct 13, 2023

Conversation

raman325
Copy link
Contributor

@raman325 raman325 commented Oct 4, 2023

This is to prep for zwave-js/certification-backlog#9

EDIT: I've also added a dirty repo check at the bottom of each script. The thought is that we can set up a workflow to run those once a day via tox. That will allow us to catch if/when the constants change

@raman325 raman325 marked this pull request as draft October 4, 2023 06:54
@raman325
Copy link
Contributor Author

raman325 commented Oct 4, 2023

may rework this to generate it like we do for multilevel sensor constants

Copy link
Contributor

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine by me.
if we expect this to be ever going to change/extend, we might want to add a fallback handler to unknown ?

example: https://github.com/home-assistant-libs/aiohue/blob/master/aiohue/v2/models/feature.py#L97

@raman325 raman325 marked this pull request as ready for review October 4, 2023 14:06
@raman325 raman325 changed the title Add notification types enum Create script to generate notification enums and check if git is dirty Oct 4, 2023
@raman325
Copy link
Contributor Author

raman325 commented Oct 5, 2023

this needs to be merged before we finalize the notification CC constants in this PR: zwave-js/node-zwave-js#6368

@raman325 raman325 marked this pull request as draft October 5, 2023 11:27
@raman325 raman325 marked this pull request as ready for review October 13, 2023 05:20
@raman325 raman325 merged commit f5fd1be into home-assistant-libs:master Oct 13, 2023
4 checks passed
@raman325 raman325 deleted the notification_type branch October 13, 2023 05:23
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