node-red-contrib-home-assistant-websocket
Version:
Node-RED integration with Home Assistant through websocket and REST API
23 lines (22 loc) • 680 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = [
{
version: 0,
up: (schema) => {
const newSchema = {
...schema,
version: 0,
};
if (newSchema.templateLocationType === undefined) {
newSchema.templateLocation = 'template';
newSchema.templateLocationType = 'msg';
}
if (newSchema.resultsLocationType === undefined) {
newSchema.resultsLocation = 'payload';
newSchema.resultsLocationType = 'msg';
}
return newSchema;
},
},
];
;