2
0

refactor: code clean up

This commit is contained in:
Pierre CLEMENT
2018-01-03 12:12:45 +01:00
parent a02969a0dd
commit a33d616516
24 changed files with 371 additions and 1005 deletions

View File

@@ -3,7 +3,7 @@
category: 'config',
defaults: {
name: {value: ""},
ip: {value: ""},
ip: {value: "", required: true},
sid: {value: ""},
deviceList: {value:[{ sid:"", desc:"", model:"plug"}]},
key: {value: ""}

View File

@@ -1,5 +1,4 @@
module.exports = function(RED) {
module.exports = (RED) => {
function XiaomiConfiguratorNode(n) {
RED.nodes.createNode(this, n);
this.name = n.name;
@@ -12,5 +11,4 @@ module.exports = function(RED) {
}
RED.nodes.registerType("xiaomi-configurator", XiaomiConfiguratorNode);
}