UNPKG

iobroker.lovelace

Version:

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

2 lines 1.63 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["68722"],{48280:function(e,a,t){t.a(e,(async function(e,s){try{t.r(a),t.d(a,{AreasDashboardStrategy:()=>u});var r=t(61701),n=(t(71695),t(9359),t(70104),t(40251),t(47021),t(94277)),o=t(57243),i=t(50778),d=t(45538),c=e([d]);d=(c.then?(await c)():c)[0];let u=(0,r.Z)([(0,i.Mo)("areas-dashboard-strategy")],(function(e,a){return{F:class extends a{constructor(...a){super(...a),e(this)}},d:[{kind:"method",static:!0,key:"generate",value:async function(e,a){var t,s;if(a.config.state===n.UE)return{views:[{type:"sections",sections:[{cards:[{type:"starting"}]}]}]};if(a.config.recovery_mode)return{views:[{type:"sections",sections:[{cards:[{type:"recovery-mode"}]}]}]};const r=(0,d.ao)(a.areas,null===(t=e.areas_display)||void 0===t?void 0:t.hidden,null===(s=e.areas_display)||void 0===s?void 0:s.order).map((a=>{var t;const s=(0,d._$)(a.area_id),r=null===(t=e.areas_options)||void 0===t?void 0:t[a.area_id];return{title:a.name,path:s,strategy:{type:"area",area:a.area_id,groups_options:null==r?void 0:r.groups_options}}}));return{views:[{title:"Home",icon:"mdi:home",path:"home",strategy:{type:"areas-overview",areas_display:e.areas_display,areas_options:e.areas_options}},...r]}}},{kind:"method",static:!0,key:"getConfigElement",value:async function(){return await Promise.all([t.e("46379"),t.e("5080"),t.e("32491"),t.e("18865"),t.e("86431"),t.e("53031")]).then(t.bind(t,78756)),document.createElement("hui-areas-dashboard-strategy-editor")}}]}}),o.fl);s()}catch(u){s(u)}}))}}]); //# sourceMappingURL=68722.b48e139b44f807ee.js.map