node-red-contrib-home-assistant-websocket
Version:
Node-RED integration with Home Assistant through websocket and REST API
2 lines (1 loc) • 1.11 kB
JavaScript
;var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var u in t)o(e,u,{get:t[u],enumerable:!0})},r=(e,t,u,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p(t))!y.call(e,n)&&n!==u&&o(e,n,{get:()=>t[n],enumerable:!(d=i(t,n))||d.enumerable});return e};var _=e=>r(o({},"__esModule",{value:!0}),e);var l={};a(l,{default:()=>f});module.exports=_(l);var f=[{version:0,up:e=>{const t={...e,version:0,output_type:e.output_type===void 0?"array":e.output_type};return t.output_location===void 0&&(t.output_location="payload",t.output_location_type="msg"),t}},{version:1,up:e=>{const t={...e,version:1,startDate:e.startdate,endDate:e.enddate,entityId:e.entityid,outputType:e.output_type,outputLocationType:e.output_location_type,outputLocation:e.output_location,entityIdType:e.entityidtype==="includes"?"regex":"equals"};return t.startdate=void 0,t.enddate=void 0,t.entityid=void 0,t.entityidtype=void 0,t.output_type=void 0,t.output_location_type=void 0,t.output_location=void 0,t}}];