UNPKG

iobroker.lovelace

Version:

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

1 lines 974 B
export const __rspack_esm_id=80275;export const __rspack_esm_ids=[80275];export const __webpack_modules__={38238(t,s,i){i.a(t,async function(t,n){try{i.r(s);var e=i(62826),r=i(5124),h=i(22441),o=i(24247),a=i(784),c=i(79757),_=i(85979),g=t([c,_,o]);[c,_,o]=g.then?(await g)():g;class u extends r.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,a.LX)(this,t)}render(){if(!this._config||!this.hass)return r.s6;const t=this.hass.states[this._config.entity];return t?r.qy` <hui-generic-entity-row .hass="${this.hass}" .config="${this._config}"> ${(0,o.A_)(t,this.hass)} </hui-generic-entity-row> `:r.qy` <hui-warning .hass="${this.hass}"> ${(0,_.j)(this.hass,this._config.entity)} </hui-warning> `}}u.styles=r.AH`div{text-align:right}`,(0,e.Cg)([(0,h.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,e.Cg)([(0,h.wk)()],u.prototype,"_config",void 0),u=(0,e.Cg)([(0,h.EM)("hui-update-entity-row")],u),n()}catch(t){n(t)}})}};