From b319033c8fae6c4fff0a30f80cea2c6a8f858fc2 Mon Sep 17 00:00:00 2001 From: Claudio Chimera Date: Sat, 30 Oct 2021 14:25:34 +0200 Subject: [PATCH] Bug Fix --- alexa/alexa-device.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/alexa/alexa-device.js b/alexa/alexa-device.js index 9a465e2..41a2f63 100644 --- a/alexa/alexa-device.js +++ b/alexa/alexa-device.js @@ -2483,6 +2483,8 @@ module.exports = function (RED) { // setValues(from_object, to_object) { const node = this; + return node.updateState(from_object, node.state, node.state_types, EXCLUSIVE_STATES); + /* let differs = []; Object.keys(to_object).forEach(function (key) { if (from_object.hasOwnProperty(key)) { @@ -2493,13 +2495,14 @@ module.exports = function (RED) { }); node.updateStatusIcon(); return differs; + */ } // // // // - setValue(key, value, to_object, float_values) { + /*setValue(key, value, to_object, float_values) { const node = this; let differs = false; const old_value = to_object[key]; @@ -2575,7 +2578,8 @@ module.exports = function (RED) { } } return differs; - } + }*/ + // // // diff --git a/package.json b/package.json index 731a06c..e6e9dad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-alexa-virtual-smarthome", - "version": "0.0.18", + "version": "0.0.19", "description": "Node Red Alexa Smarthome node", "main": "index.js", "scripts": {