Fix add zwave device my link (#24871)

This commit is contained in:
Bram Kragten 2025-03-31 16:01:15 +02:00 committed by GitHub
parent 29d2c29af3
commit 488b54cf19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,12 +11,19 @@ export class DialogZWaveJSAddNode extends HTMLElement {
public configEntryId!: string;
connectedCallback() {
this._openDialog();
}
private async _openDialog() {
await navigate(
`/config/devices/dashboard?config_entry=${this.configEntryId}`,
{
replace: true,
}
);
showZWaveJSAddNodeDialog(this, {
entry_id: this.configEntryId,
});
navigate(`/config/devices/dashboard?config_entry=${this.configEntryId}`, {
replace: true,
});
}
}