iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 2.17 kB
JavaScript
export const __webpack_ids__=["72333"];export const __webpack_modules__={41841:function(t,e,n){n.r(e),n.d(e,{default:()=>_});var o=n(62900),i=n(45079),a=n(18200);const c=(0,o.f0)(a.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)(i.ds)})),_={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:()=>i});var o=n(62900);const i=(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:()=>a});var o=n(62900),i=n(30571);const a=(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)(i.fJ),hold_action:(0,o.jt)(i.fJ),double_tap_action:(0,o.jt)(i.fJ)})},45079:function(t,e,n){n.d(e,{ds:()=>s,gg:()=>r});var o=n(62900),i=n(30571),a=n(92228);const c=(0,o.Ry)({type:(0,o.Z_)(),image:(0,o.Z_)(),tap_action:(0,o.jt)(i.fJ),hold_action:(0,o.jt)(i.fJ),double_tap_action:(0,o.jt)(i.fJ),alt_text:(0,o.jt)((0,o.Z_)())}),_=(0,o.Ry)({type:(0,o.Z_)(),entities:(0,o.IX)(a.k)}),r=(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)())}),s=(0,o.D8)((t=>{if(t&&"object"==typeof t&&"type"in t)switch(t.type){case"buttons":return _;case"graph":return r;case"picture":return c}return(0,o.G0)([_,r,c])}))}};
//# sourceMappingURL=72333.7c3a37dfb750fb5a.js.map