Fix add zwave device my link (#24871)

This commit is contained in:
Bram Kragten 2025-03-31 16:01:15 +02:00
parent 6017d82c21
commit 7e06bbc467

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,
});
}
}