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

Update const generation scripts based on zwave-js 13 #1079

Merged
merged 17 commits into from
Oct 4, 2024

Conversation

raman325
Copy link
Contributor

@raman325 raman325 commented Oct 3, 2024

The existing scripts to generate the constants for the Notification and Multilevel Sensor CCs depended on JSON files that have been retired in Z-Wave JS 13.x in favor of in-code constants.

To access these constants so we can serialize the data so it can be parsed by the Python scripts, we now run a Node script first.

Looks like I also fixed a sorting issue in the output

@raman325 raman325 marked this pull request as ready for review October 3, 2024 00:59
@raman325 raman325 marked this pull request as draft October 3, 2024 01:17
@raman325 raman325 marked this pull request as ready for review October 3, 2024 03:04
scripts/helpers.py Outdated Show resolved Hide resolved
scripts/helpers.py Outdated Show resolved Hide resolved
scripts/helpers.py Outdated Show resolved Hide resolved
scripts/helpers.py Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
zwave_js_server/const/command_class/notification.py Outdated Show resolved Hide resolved
@raman325 raman325 marked this pull request as draft October 3, 2024 14:21
@raman325 raman325 marked this pull request as ready for review October 4, 2024 05:42
Copy link
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Thanks!

@MartinHjelmare MartinHjelmare merged commit 7bec8be into home-assistant-libs:master Oct 4, 2024
4 checks passed
@raman325 raman325 deleted the generation branch October 4, 2024 06:13
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.

2 participants