node-red-contrib-home-assistant-websocket
Version:
Node-RED integration with Home Assistant through websocket and REST API
41 lines (40 loc) • 937 B
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,
exposeAsEntityConfig: '',
response: '',
};
return newSchema;
},
},
{
version: 2,
up: (schema) => {
const newSchema = {
...schema,
version: 2,
mode: 'trigger',
triggerResponseType: 'fixed',
responseType: 'jsonata',
responseTimeout: 1000,
};
return newSchema;
},
},
];
;