From ad711d941c23c9070740b5fe404c9d105d4ee2f5 Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:38:26 +0100 Subject: [PATCH] Update main.js --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b3d162b0..c01f988b 100644 --- a/main.js +++ b/main.js @@ -742,7 +742,9 @@ class Zigbee extends utils.Adapter { } if (preparedOptions.hasOwnProperty('state')) { - meta.state = preparedOptions.state; + if (preparedOptions !== undefined) { + meta.state = preparedOptions.state; + } } try {