iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 1.16 kB
JavaScript
export const __webpack_ids__=["37269"];export const __webpack_modules__={53257:function(e,i,r){r.r(i),r.d(i,{HuiErrorCard:()=>a});var t=r(44249),o=r(76848),n=r(57243),d=r(15093);r(99426);let a=(0,t.Z)([(0,d.Mo)("hui-error-card")],(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[{kind:"field",key:"hass",value:void 0},{kind:"field",decorators:[(0,d.Cb)({attribute:!1})],key:"preview",value:()=>!1},{kind:"field",decorators:[(0,d.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 n.Ld;let e;if(this._config.origConfig)try{e=(0,o.dump)(this._config.origConfig)}catch(i){e=`[Error dumping ${this._config.origConfig}]`}return n.dy`<ha-alert alert-type="error" .title="${this._config.error}"> ${e?n.dy`<pre>${e}</pre>`:""} </ha-alert>`}},{kind:"field",static:!0,key:"styles",value:()=>n.iv`pre{font-family:var(--code-font-family, monospace);white-space:break-spaces;user-select:text}`}]}}),n.oi)}};
//# sourceMappingURL=37269.0727e9ebfabdbd4a.js.map