node-red-contrib-telldus-zwave-v2-local
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,3 +17,3 @@ const TelldusLocal = require('telldus-local'); | ||
hostname: node._gateway._ip, | ||
accessToken: node._gateway._accessToken | ||
accessToken: node._gateway.credentials.accessToken | ||
}; | ||
@@ -49,3 +49,3 @@ | ||
(node._gateway._ip == undefined || !node._gateway._ip.trim()) || | ||
(node._gateway._accessToken == undefined || !node._gateway._accessToken.trim())) | ||
(node._gateway.credentials.accessToken == undefined || !node._gateway.credentials.accessToken.trim())) | ||
{ | ||
@@ -52,0 +52,0 @@ node.status({fill:"red", shape:"ring", text:"Not configured"}); |
@@ -7,5 +7,9 @@ | ||
this._ip = n.ip; | ||
this._accessToken = n.accessToken; | ||
} | ||
RED.nodes.registerType("telldus-gateway",TelldusGatewayNode); | ||
RED.nodes.registerType("telldus-gateway",TelldusGatewayNode, { | ||
credentials: { | ||
accessToken: {type:"text"} | ||
} | ||
}); | ||
} |
{ | ||
"name": "node-red-contrib-telldus-zwave-v2-local", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Adds on/off capability to z-wave devices connected to a telldus zwave device using the local API", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53616
57