From e5ed26442383d2ee8ee86175b767ebc9ab1ec933 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Sat, 18 May 2019 23:33:22 +0200 Subject: [PATCH] clone message (test if this could be a workaround for #84) --- nodes/ccu-get-value.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/ccu-get-value.js b/nodes/ccu-get-value.js index 55f1462..9ab1e53 100644 --- a/nodes/ccu-get-value.js +++ b/nodes/ccu-get-value.js @@ -12,6 +12,7 @@ module.exports = function (RED) { } this.on('input', msg => { + msg = RED.util.cloneMessage(msg); let value; const iface = msg.iface || config.iface; const channel = msg.channel || config.channel.split(' ')[0]; @@ -26,7 +27,6 @@ module.exports = function (RED) { } this.status({fill: 'green', shape: 'ring', text: String(value.payload)}); - if (config.setPropType === 'cmsg') { Object.assign(msg, value); this.send(msg);