2018-01-03 12:12:45 +01:00
|
|
|
module.exports = (RED) => {
|
2017-06-30 21:32:10 +02:00
|
|
|
function XiaomiConfiguratorNode(n) {
|
2017-06-25 18:48:17 +02:00
|
|
|
RED.nodes.createNode(this, n);
|
|
|
|
|
this.name = n.name;
|
2017-06-30 19:14:32 +02:00
|
|
|
this.deviceList = n.deviceList || [];
|
2017-06-30 22:02:50 +02:00
|
|
|
this.key = n.key;
|
2017-12-31 23:10:06 +01:00
|
|
|
this.ip = n.ip;
|
2018-01-01 20:47:30 +01:00
|
|
|
this.sid = this.sid || n.sid;
|
2017-06-25 18:48:17 +02:00
|
|
|
|
|
|
|
|
var node = this;
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-30 21:32:10 +02:00
|
|
|
RED.nodes.registerType("xiaomi-configurator", XiaomiConfiguratorNode);
|
2017-06-25 18:48:17 +02:00
|
|
|
}
|