mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fix add zwave device my link (#24871)
This commit is contained in:
parent
29d2c29af3
commit
488b54cf19
@ -11,12 +11,19 @@ export class DialogZWaveJSAddNode extends HTMLElement {
|
|||||||
public configEntryId!: string;
|
public configEntryId!: string;
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
|
this._openDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async _openDialog() {
|
||||||
|
await navigate(
|
||||||
|
`/config/devices/dashboard?config_entry=${this.configEntryId}`,
|
||||||
|
{
|
||||||
|
replace: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
showZWaveJSAddNodeDialog(this, {
|
showZWaveJSAddNodeDialog(this, {
|
||||||
entry_id: this.configEntryId,
|
entry_id: this.configEntryId,
|
||||||
});
|
});
|
||||||
navigate(`/config/devices/dashboard?config_entry=${this.configEntryId}`, {
|
|
||||||
replace: true,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user