node-red-contrib-home-assistant-websocket
Version:
Node-RED integration with Home Assistant through websocket and REST API
35 lines (34 loc) • 1.07 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = [
{
version: 0,
up: (schema) => {
const newSchema = {
...schema,
version: 0,
};
return newSchema;
},
},
{
version: 1,
up: (schema) => {
const newSchema = {
...schema,
version: 1,
outputType: schema.output_type,
outputEmptyResults: schema.output_empty_results,
outputLocationType: schema.output_location_type,
outputLocation: schema.output_location,
outputResultsCount: schema.output_results_count,
};
newSchema.output_type = undefined;
newSchema.output_empty_results = undefined;
newSchema.output_location_type = undefined;
newSchema.output_location = undefined;
newSchema.output_results_count = undefined;
return newSchema;
},
},
];
;