UNPKG

iobroker.lovelace

Version:

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

2 lines 1.11 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["8751"],{83268:function(e,t,o){o.r(t),o.d(t,{HaSelectorConstant:()=>s});var l=o(61701),n=(o(71695),o(47021),o(57243)),i=o(50778);let s=(0,l.Z)([(0,i.Mo)("ha-selector-constant")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,i.Cb)({attribute:!1})],key:"selector",value:void 0},{kind:"field",decorators:[(0,i.Cb)({type:Boolean})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,i.Cb)({attribute:!1})],key:"localizeValue",value:void 0},{kind:"method",key:"render",value:function(){var e,t,o,l,i;if(this.disabled)return n.Ld;const s=null===(e=this.selector.constant)||void 0===e?void 0:e.translation_key,a=s&&this.localizeValue?this.localizeValue(`${s}.value`):void 0;return null!==(t=null!==(o=null!=a?a:null===(l=this.selector.constant)||void 0===l?void 0:l.label)&&void 0!==o?o:null===(i=this.selector.constant)||void 0===i?void 0:i.value)&&void 0!==t?t:n.Ld}}]}}),n.oi)}}]); //# sourceMappingURL=8751.f737e0e3624906c5.js.map