2018-01-03 12:12:45 +01:00
|
|
|
const miDevicesUtils = require('../src/utils');
|
2017-07-02 17:21:47 +02:00
|
|
|
|
2018-01-03 12:12:45 +01:00
|
|
|
module.exports = (RED) => {
|
2017-07-02 17:21:47 +02:00
|
|
|
function XiaomiSwitchNode(config) {
|
2018-01-03 12:12:45 +01:00
|
|
|
miDevicesUtils.defaultNode(RED, config, this);
|
2017-07-02 17:21:47 +02:00
|
|
|
}
|
|
|
|
|
RED.nodes.registerType("xiaomi-switch", XiaomiSwitchNode);
|
2018-01-03 12:12:45 +01:00
|
|
|
};
|