ZwaveJS controller migration flow (#25003)

* ZwaveJS migration flow

* Show exact progress in options flow

* progress fix

* Apply suggestions from code review

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* remove unused string

* import fix

* fix selectedDomain

* entryId -> handler

* Update src/translations/en.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Petar Petrov 2025-04-17 14:32:33 +03:00 committed by GitHub
parent 933fb1327a
commit 9fc28e5abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 8 deletions

View File

@ -419,11 +419,6 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
"ui.panel.config.zwave_js.common.rebuild_network_routes"
)}
</ha-button>
<ha-button @click=${this._openOptionFlow}>
${this.hass.localize(
"ui.panel.config.zwave_js.common.reconfigure_server"
)}
</ha-button>
</div>
</ha-card>
<ha-card>
@ -508,7 +503,15 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
@change=${this._handleRestoreFileSelected}
style="display: none"
/>
</div>`}
</div>
<ha-button
@click=${this._openOptionFlow}
class="warning migrate-button"
>
${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.nvm_backup.migrate"
)}
</ha-button>`}
</div>
</ha-card>
`
@ -964,6 +967,10 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
.button-content {
pointer-events: none;
}
.migrate-button {
margin-left: auto;
}
`,
];
}

View File

@ -5660,7 +5660,6 @@
"back": "Back",
"add_node": "Add device",
"remove_node": "Remove device",
"reconfigure_server": "Re-configure server",
"rebuild_network_routes": "Rebuild network routes",
"in_progress_inclusion_exclusion": "Z-Wave JS is searching for devices",
"cancel_inclusion_exclusion": "Stop searching"
@ -5681,7 +5680,9 @@
"backup_failed": "Failed to download backup",
"restore_complete": "Backup restored",
"restore_failed": "Failed to restore backup",
"downloading": "Downloading backup"
"downloading": "Downloading backup",
"restoring": "Restoring backup",
"migrate": "Migrate controller"
},
"statistics": {
"title": "Controller statistics",