UNPKG

iobroker.lovelace

Version:

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

2 lines 876 B
export const __webpack_ids__=["8751"];export const __webpack_modules__={83268:function(e,t,o){o.r(t),o.d(t,{HaSelectorConstant:()=>n});var a=o(44249),l=o(57243),s=o(15093);let n=(0,a.Z)([(0,s.Mo)("ha-selector-constant")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"selector",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"localizeValue",value:void 0},{kind:"method",key:"render",value:function(){if(this.disabled)return l.Ld;const e=this.selector.constant?.translation_key;return(e&&this.localizeValue?this.localizeValue(`${e}.value`):void 0)??this.selector.constant?.label??this.selector.constant?.value??l.Ld}}]}}),l.oi)}}; //# sourceMappingURL=8751.b50a41b881be3865.js.map