UNPKG

node-red-contrib-xiaomi-smart-devices

Version:
17 lines (13 loc) 329 B
const factory = require('../factory'); /** * @param {Red} RED */ module.exports = function (RED) { function XiaomiSwitch(config) { //create the node-red node RED.nodes.createNode(this, config); //create the device factory(RED, this, config); } RED.nodes.registerType('xiaomi-switch', XiaomiSwitch); };