UNPKG

iobroker.lovelace

Version:

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

2 lines 4.38 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["68823"],{34612:function(e,t,s){s.d(t,{b:()=>a,u:()=>n});s(71695),s(92519),s(42179),s(89256),s(24931),s(88463),s(57449),s(19814),s(47021);var i=s(73850);const n=e=>e.include_domains.length+e.include_entities.length+e.exclude_domains.length+e.exclude_entities.length===0,a=(e,t,s,n)=>{const a=new Set(e),o=new Set(t),l=new Set(s),c=new Set(n),d=a.size>0||o.size>0,u=l.size>0||c.size>0;return d||u?d&&!u?e=>o.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):o.has(e):l.size?e=>l.has((0,i.M)(e))?o.has(e):!c.has(e):e=>o.has(e):()=>!0}},83456:function(e,t,s){var i=s(61701),n=(s(71695),s(47021),s(92444)),a=s(76688),o=s(57243),l=s(50778);let c,d=e=>e;(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(){return[a.W,(0,o.iv)(c||(c=d`:host{--mdc-theme-secondary:var(--primary-color)}`))]}}]}}),n.A)},93272:function(e,t,s){s.d(t,{Zo:()=>n,tt:()=>i});const i=e=>e.callWS({type:"cloud/alexa/entities"}),n=(e,t)=>e.callWS({type:"cloud/alexa/entities/get",entity_id:t})},94616:function(e,t,s){s.d(t,{AC:()=>v,AV:()=>r,De:()=>_,H9:()=>y,LI:()=>u,LV:()=>f,Mc:()=>p,QD:()=>g,VU:()=>o,_Y:()=>a,_t:()=>d,bi:()=>c,dV:()=>m,dn:()=>h,u_:()=>l});var i=s(58814);s(19423);const n=["hass"],a=e=>{let{hass:t}=e,s=(0,i.Z)(e,n);return t.callApi("POST","cloud/login",s)},o=e=>e.callApi("POST","cloud/logout"),l=(e,t)=>e.callApi("POST","cloud/forgot_password",{email:t}),c=(e,t,s)=>e.callApi("POST","cloud/register",{email:t,password:s}),d=(e,t)=>e.callApi("POST","cloud/resend_confirm",{email:t}),u=e=>e.callWS({type:"cloud/status"}),r=(e,t)=>e.callWS({type:"cloud/cloudhook/create",webhook_id:t}),p=(e,t)=>e.callWS({type:"cloud/cloudhook/delete",webhook_id:t}),h=e=>e.callWS({type:"cloud/remote/connect"}),y=e=>e.callWS({type:"cloud/remote/disconnect"}),_=e=>e.callWS({type:"cloud/subscription"}),f=(e,t)=>e.callWS(Object.assign({type:"cloud/update_prefs"},t)),m=e=>e.callWS({type:"cloud/remove_data"}),g=(e,t,s)=>e.callWS({type:"cloud/google_assistant/entities/update",entity_id:t,disable_2fa:s}),v=e=>e.callApi("GET","cloud/support_package")},38034:function(e,t,s){s.d(t,{Fk:()=>a,HC:()=>l,_v:()=>o,fL:()=>n,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"}},n=(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}),o=(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:()=>n,gh:()=>i});const i=e=>e.callWS({type:"cloud/google_assistant/entities"}),n=(e,t)=>e.callWS({type:"cloud/google_assistant/entities/get",entity_id:t})},86948:function(e,t,s){s.r(t);var i=s(61701),n=(s(71695),s(9359),s(31526),s(47021),s(57243)),a=s(50778),o=s(27486),l=s(38034);s(37877);let c,d,u=e=>e;(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(){return(0,o.Z)((e=>{const t={};return Object.keys(l.rx).forEach((s=>{var i;t[s]=null===(i=e.options)||void 0===i||null===(i=i[s])||void 0===i?void 0:i.should_expose})),t}))}},{kind:"method",key:"render",value:function(){return this.params?(0,n.dy)(c||(c=u`<entity-voice-settings .hass="${0}" .entityId="${0}" .entry="${0}" .exposed="${0}"></entity-voice-settings>`),this.hass,this.entry.entity_id,this.entry,this._calculateExposed(this.entry)):n.Ld}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(d||(d=u`:host{display:flex;flex-direction:column}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;flex:1}`))]}}]}}),n.oi)}}]); //# sourceMappingURL=68823.5d13ee51e23fa70b.js.map