iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 954 B
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[77057],{39032:function(t,e,o){o.r(e),o.d(e,{HaSelectorConstant:function(){return i}});o(62953);var s=o(40445),l=o(5124),n=o(67576);class i extends l.WF{render(){var t,e,o,s,n;if(this.disabled)return l.s6;const i=null===(t=this.selector.constant)||void 0===t?void 0:t.translation_key,a=i&&this.localizeValue?this.localizeValue(`${i}.value`):void 0;return null!==(e=null!==(o=null!=a?a:null===(s=this.selector.constant)||void 0===s?void 0:s.label)&&void 0!==o?o:null===(n=this.selector.constant)||void 0===n?void 0:n.value)&&void 0!==e?e:l.s6}constructor(...t){super(...t),this.disabled=!1}}(0,s.Cg)([(0,n.MZ)({attribute:!1})],i.prototype,"selector",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean})],i.prototype,"disabled",void 0),(0,s.Cg)([(0,n.MZ)({attribute:!1})],i.prototype,"localizeValue",void 0),i=(0,s.Cg)([(0,n.EM)("ha-selector-constant")],i)}}]);