mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix "Cancel exclusion" button for Z-Wave (#26188)
This commit is contained in:
parent
361474885f
commit
cf3c40f5f7
@ -323,7 +323,7 @@ class DialogZWaveJSRemoveNode extends LitElement {
|
||||
this._subscribed.then((unsub) => unsub && unsub());
|
||||
this._subscribed = undefined;
|
||||
}
|
||||
if (this._step === "exclusion") {
|
||||
if (this._step === "exclusion" && this._entryId) {
|
||||
this._stopExclusion();
|
||||
}
|
||||
if (this._removeNodeTimeoutHandle) {
|
||||
@ -332,6 +332,7 @@ class DialogZWaveJSRemoveNode extends LitElement {
|
||||
};
|
||||
|
||||
public closeDialog(): void {
|
||||
this._unsubscribe();
|
||||
this._entryId = undefined;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user