From cf3c40f5f7e8c65301a0d955d159223125657465 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Wed, 16 Jul 2025 18:29:28 +0300 Subject: [PATCH] Fix "Cancel exclusion" button for Z-Wave (#26188) --- .../integration-panels/zwave_js/dialog-zwave_js-remove-node.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/config/integrations/integration-panels/zwave_js/dialog-zwave_js-remove-node.ts b/src/panels/config/integrations/integration-panels/zwave_js/dialog-zwave_js-remove-node.ts index 58e88b3c00..2bbb6d13fe 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/dialog-zwave_js-remove-node.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/dialog-zwave_js-remove-node.ts @@ -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; }