node-red-contrib-home-assistant-websocket
Version:
Node-RED integration with Home Assistant through websocket and REST API
10 lines (9 loc) • 347 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = deviceConfigNode;
const globals_1 = require("../../globals");
const migrate_1 = require("../../helpers/migrate");
function deviceConfigNode(config) {
globals_1.RED.nodes.createNode(this, config);
this.config = (0, migrate_1.migrate)(config);
}
;