From 35333f8013ee5c6913d55807cd2cc1a1a312f561 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Mon, 30 Oct 2023 12:01:42 +0100 Subject: [PATCH] fix: do not attempt to poll values from nodes that are considered dead --- packages/zwave-js/src/lib/node/Node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/zwave-js/src/lib/node/Node.ts b/packages/zwave-js/src/lib/node/Node.ts index 543c26eccd09..baf78ebfb267 100644 --- a/packages/zwave-js/src/lib/node/Node.ts +++ b/packages/zwave-js/src/lib/node/Node.ts @@ -2820,10 +2820,13 @@ protocol version: ${this.protocolVersion}`; } /** - * Refreshes the values of all CCs that should be reporting regularly, but haven't been + * Refreshes the values of all CCs that should be reporting regularly, but haven't been updated recently * @internal */ public async autoRefreshValues(): Promise { + // Do not attempt to communicate with dead nodes automatically + if (this.status === NodeStatus.Dead) return; + for (const endpoint of this.getAllEndpoints()) { for ( const cc of endpoint