refactor: code clean up
This commit is contained in:
@@ -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: ""}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user