-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 zwave to zwave_js migration #56159
Conversation
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @cgarwood, @marcelveldt, mind taking a look at this pull request as it has been labeled with an integration ( |
|
||
LEGACY_ZWAVE_MIGRATION = f"{DOMAIN}_legacy_zwave_migration" | ||
STORAGE_WRITE_DELAY = 30 | ||
STORAGE_KEY = f"{DOMAIN}.legacy_zwave_migration" |
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.
Is it still needed to add legacy_zwave
if we already prefix the value with the zwave
domain?
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.
Maybe not.
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.
One reason too keep it, is it'll be easier to identify the two storage files that are part of the same migration.
"command_class_label": entity_values.primary.label, | ||
"value_index": entity_values.primary.index, | ||
"device_id": device_entry.id, | ||
"domain": entity_entry.domain, |
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.
Isn't this always zwave
?
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.
The domain here is the first part of the entity id (before the period).
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.
First pass looks great 🎉
619dc7d
to
8171165
Compare
Should we update https://www.home-assistant.io/integrations/zwave_js/ ? * Migrating from previous Z-Wave implementations*
Thinking to either and/or
|
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
c63e387
to
d6e701a
Compare
Breaking change
Proposed change
TODO
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: