iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 1.29 kB
JavaScript
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["37269"],{5252:function(e,r,t){t.r(r),t.d(r,{HuiErrorCard:()=>c});var i=t(61701),n=(t(71695),t(47021),t(76848)),o=t(57243),s=t(50778);t(99426);let a,d,f,u=e=>e,c=(0,i.Z)([(0,s.Mo)("hui-error-card")],(function(e,r){return{F:class extends r{constructor(...r){super(...r),e(this)}},d:[{kind:"field",key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"preview",value(){return!1}},{kind:"field",decorators:[(0,s.SB)()],key:"_config",value:void 0},{kind:"method",key:"getCardSize",value:function(){return 4}},{kind:"method",key:"setConfig",value:function(e){this._config=e}},{kind:"method",key:"render",value:function(){if(!this._config)return o.Ld;let e;if(this._config.origConfig)try{e=(0,n.dump)(this._config.origConfig)}catch(r){e=`[Error dumping ${this._config.origConfig}]`}return(0,o.dy)(a||(a=u`<ha-alert alert-type="error" .title="${0}"> ${0} </ha-alert>`),this._config.error,e?(0,o.dy)(d||(d=u`<pre>${0}</pre>`),e):"")}},{kind:"field",static:!0,key:"styles",value(){return(0,o.iv)(f||(f=u`pre{font-family:var(--code-font-family, monospace);white-space:break-spaces;user-select:text}`))}}]}}),o.oi)}}]);
//# sourceMappingURL=37269.abeeed0200468819.js.map