Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Chimera authored and Claudio Chimera committed Oct 30, 2021
1 parent 6c1435f commit b319033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions alexa/alexa-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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];
Expand Down Expand Up @@ -2575,7 +2578,8 @@ module.exports = function (RED) {
}
}
return differs;
}
}*/

//
//
//
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit b319033

Please sign in to comment.