UNPKG

iobroker.lovelace

Version:

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

1 lines 821 B
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[75226],{77249:function(t,s,e){e.a(t,async function(t,a){try{e.r(s);var i=e(40445),n=e(5124),r=e(67576),h=e(13062),o=e(67013),c=t([h]);h=(c.then?(await c)():c)[0];let l,u,d=t=>t;class b extends n.WF{render(){if(!this.hass||!this.stateObj)return n.s6;const t=(0,o.e)(this.stateObj);return t?(0,n.qy)(l||(l=d`<img alt="${0}" src="${0}"> `),this.stateObj.attributes.friendly_name||this.stateObj.entity_id,this.hass.hassUrl(t)):n.s6}}b.styles=(0,n.AH)(u||(u=d`:host{display:block;text-align:center}img{max-width:100%}`)),(0,i.Cg)([(0,r.MZ)({attribute:!1})],b.prototype,"hass",void 0),(0,i.Cg)([(0,r.MZ)({attribute:!1})],b.prototype,"stateObj",void 0),b=(0,i.Cg)([(0,r.EM)("more-info-image")],b),a()}catch(l){a(l)}})}}]);