From f67391d8b76811321c665d6cde2bd0976a257bdc Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Sat, 23 Dec 2023 12:40:35 +0100 Subject: [PATCH] Update main.js --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index f6d5739e..f507b69b 100644 --- a/main.js +++ b/main.js @@ -575,9 +575,9 @@ class Zigbee extends utils.Adapter { }); const payload = await new Promise((resolve, reject) => { - const payload = converter.convert(mappedModel, message, publish, options, meta); - if (typeof payload === 'object') { - resolve(payload); + const payloadConv = converter.convert(mappedModel, message, publish, options, meta); + if (typeof payloadConv === 'object') { + resolve(payloadConv); } });