UNPKG

iobroker.lovelace

Version:

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

2 lines 2.22 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["72333"],{41841:function(t,e,n){n.r(e),n.d(e,{default:()=>r});var o=n(62900),a=n(45079),i=n(18200);const c=(0,o.f0)(i.I,(0,o.Ry)({entity:(0,o.jt)((0,o.Z_)()),name:(0,o.jt)((0,o.Z_)()),icon:(0,o.jt)((0,o.Z_)()),attribute:(0,o.jt)((0,o.Z_)()),unit:(0,o.jt)((0,o.Z_)()),theme:(0,o.jt)((0,o.Z_)()),state_color:(0,o.jt)((0,o.O7)()),footer:(0,o.jt)(a.ds)})),r={schema:[{name:"entity",required:!0,selector:{entity:{}}},{type:"grid",name:"",schema:[{name:"name",selector:{text:{}}},{name:"icon",selector:{icon:{}},context:{icon_entity:"entity"}},{name:"attribute",selector:{attribute:{}},context:{filter_entity:"entity"}},{name:"unit",selector:{text:{}}},{name:"theme",selector:{theme:{}}},{name:"state_color",selector:{boolean:{}}}]}],assertConfig:t=>(0,o.hu)(t,c),computeLabel:(t,e)=>"theme"===t.name?`${e("ui.panel.lovelace.editor.card.generic.theme")} (${e("ui.panel.lovelace.editor.card.config.optional")})`:e(`ui.panel.lovelace.editor.card.generic.${t.name}`)}},18200:function(t,e,n){n.d(e,{I:()=>a});var o=n(62900);const a=(0,o.Ry)({type:(0,o.Z_)(),view_layout:(0,o.Yj)(),layout_options:(0,o.Yj)(),grid_options:(0,o.Yj)(),visibility:(0,o.Yj)()})},92228:function(t,e,n){n.d(e,{k:()=>i});var o=n(62900),a=n(30571);const i=(0,o.Ry)({entity:(0,o.Z_)(),name:(0,o.jt)((0,o.Z_)()),icon:(0,o.jt)((0,o.Z_)()),image:(0,o.jt)((0,o.Z_)()),show_name:(0,o.jt)((0,o.O7)()),show_icon:(0,o.jt)((0,o.O7)()),tap_action:(0,o.jt)(a.fJ),hold_action:(0,o.jt)(a.fJ),double_tap_action:(0,o.jt)(a.fJ)})},45079:function(t,e,n){n.d(e,{ds:()=>_,gg:()=>s});var o=n(62900),a=n(30571),i=n(92228);const c=(0,o.Ry)({type:(0,o.Z_)(),image:(0,o.Z_)(),tap_action:(0,o.jt)(a.fJ),hold_action:(0,o.jt)(a.fJ),double_tap_action:(0,o.jt)(a.fJ),alt_text:(0,o.jt)((0,o.Z_)())}),r=(0,o.Ry)({type:(0,o.Z_)(),entities:(0,o.IX)(i.k)}),s=(0,o.Ry)({type:(0,o.Z_)(),entity:(0,o.Z_)(),detail:(0,o.jt)((0,o.Rx)()),hours_to_show:(0,o.jt)((0,o.Rx)())}),_=(0,o.D8)((t=>{if(t&&"object"==typeof t&&"type"in t)switch(t.type){case"buttons":return r;case"graph":return s;case"picture":return c}return(0,o.G0)([r,s,c])}))}}]); //# sourceMappingURL=72333.52209244726b96d8.js.map