UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 4.05 kB
export const __webpack_ids__=["68823"];export const __webpack_modules__={34612:function(e,t,s){s.d(t,{b:()=>a,u:()=>o});s(92519),s(42179),s(89256),s(24931),s(88463),s(57449),s(19814);var i=s(73850);const o=e=>e.include_domains.length+e.include_entities.length+e.exclude_domains.length+e.exclude_entities.length===0,a=(e,t,s,o)=>{const a=new Set(e),n=new Set(t),l=new Set(s),c=new Set(o),d=a.size>0||n.size>0,u=l.size>0||c.size>0;return d||u?d&&!u?e=>n.has(e)||a.has((0,i.M)(e)):!d&&u?e=>!c.has(e)&&!l.has((0,i.M)(e)):a.size?e=>a.has((0,i.M)(e))?!c.has(e):n.has(e):l.size?e=>l.has((0,i.M)(e))?n.has(e):!c.has(e):e=>n.has(e):()=>!0}},83456:function(e,t,s){var i=s(44249),o=s(92444),a=s(76688),n=s(57243),l=s(15093);(0,i.Z)([(0,l.Mo)("ha-checkbox")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",static:!0,key:"styles",value:()=>[a.W,n.iv`:host{--mdc-theme-secondary:var(--primary-color)}`]}]}}),o.A)},93272:function(e,t,s){s.d(t,{Zo:()=>o,tt:()=>i});const i=e=>e.callWS({type:"cloud/alexa/entities"}),o=(e,t)=>e.callWS({type:"cloud/alexa/entities/get",entity_id:t})},94616:function(e,t,s){s.d(t,{AC:()=>x,AV:()=>d,De:()=>y,H9:()=>p,LI:()=>c,LV:()=>_,Mc:()=>u,QD:()=>m,VU:()=>o,_Y:()=>i,_t:()=>l,bi:()=>n,dV:()=>h,dn:()=>r,u_:()=>a});const i=({hass:e,...t})=>e.callApi("POST","cloud/login",t),o=e=>e.callApi("POST","cloud/logout"),a=(e,t)=>e.callApi("POST","cloud/forgot_password",{email:t}),n=(e,t,s)=>e.callApi("POST","cloud/register",{email:t,password:s}),l=(e,t)=>e.callApi("POST","cloud/resend_confirm",{email:t}),c=e=>e.callWS({type:"cloud/status"}),d=(e,t)=>e.callWS({type:"cloud/cloudhook/create",webhook_id:t}),u=(e,t)=>e.callWS({type:"cloud/cloudhook/delete",webhook_id:t}),r=e=>e.callWS({type:"cloud/remote/connect"}),p=e=>e.callWS({type:"cloud/remote/disconnect"}),y=e=>e.callWS({type:"cloud/subscription"}),_=(e,t)=>e.callWS({type:"cloud/update_prefs",...t}),h=e=>e.callWS({type:"cloud/remove_data"}),m=(e,t,s)=>e.callWS({type:"cloud/google_assistant/entities/update",entity_id:t,disable_2fa:s}),x=e=>e.callApi("GET","cloud/support_package")},38034:function(e,t,s){s.d(t,{Fk:()=>a,HC:()=>l,_v:()=>n,fL:()=>o,rx:()=>i});const i={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},o=(e,t,s)=>e.callWS({type:"homeassistant/expose_new_entities/set",assistant:t,expose_new:s}),a=(e,t)=>e.callWS({type:"homeassistant/expose_new_entities/get",assistant:t}),n=(e,t,s,i)=>e.callWS({type:"homeassistant/expose_entity",assistants:t,entity_ids:s,should_expose:i}),l=e=>e.callWS({type:"homeassistant/expose_entity/list"})},88542:function(e,t,s){s.d(t,{Jq:()=>o,gh:()=>i});const i=e=>e.callWS({type:"cloud/google_assistant/entities"}),o=(e,t)=>e.callWS({type:"cloud/google_assistant/entities/get",entity_id:t})},86948:function(e,t,s){s.r(t);var i=s(44249),o=(s(9359),s(31526),s(57243)),a=s(15093),n=s(27486),l=s(38034);s(37877);(0,i.Z)([(0,a.Mo)("ha-more-info-view-voice-assistants")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"entry",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"params",value:void 0},{kind:"field",key:"_calculateExposed",value:()=>(0,n.Z)((e=>{const t={};return Object.keys(l.rx).forEach((s=>{t[s]=e.options?.[s]?.should_expose})),t}))},{kind:"method",key:"render",value:function(){return this.params?o.dy`<entity-voice-settings .hass="${this.hass}" .entityId="${this.entry.entity_id}" .entry="${this.entry}" .exposed="${this._calculateExposed(this.entry)}"></entity-voice-settings>`:o.Ld}},{kind:"get",static:!0,key:"styles",value:function(){return[o.iv`:host{display:flex;flex-direction:column}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;flex:1}`]}}]}}),o.oi)}}; //# sourceMappingURL=68823.36f363f8f3fd7e43.js.map