"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[8210],{73097:function(t,i,n){n.a(t,async function(t,s){try{n.r(i);var e,h,r,a=n(28430),o=n(57567),u=n(25979),c=n(12463),f=n(16472),g=(n(16280),n(15697)),y=n(57527),_=n(51209),d=n(63236),v=n(72441),l=n(59366),p=n(58178),w=t([l,p,d]);[l,p,d]=w.then?(await w)():w;var A=function(t){function i(){return(0,o.A)(this,i),(0,f.A)(this,i,arguments)}return(0,c.A)(i,t),(0,u.A)(i,[{key:"setConfig",value:function(t){if(!t)throw new Error("Invalid configuration");this._config=t}},{key:"shouldUpdate",value:function(t){return(0,v.LX)(this,t)}},{key:"render",value:function(){if(!this._config||!this.hass)return y.s6;var t=this.hass.states[this._config.entity];return t?(0,y.qy)(h||(h=(0,a.A)([" <hui-generic-entity-row .hass="," .config=","> "," </hui-generic-entity-row> "])),this.hass,this._config,(0,d.A_)(t,this.hass)):(0,y.qy)(e||(e=(0,a.A)([" <hui-warning .hass=","> "," </hui-warning> "])),this.hass,(0,p.j)(this.hass,this._config.entity))}}])}(y.WF);A.styles=(0,y.AH)(r||(r=(0,a.A)(["div{text-align:right}"]))),(0,g.Cg)([(0,_.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,g.Cg)([(0,_.wk)()],A.prototype,"_config",void 0),A=(0,g.Cg)([(0,_.EM)("hui-update-entity-row")],A),s()}catch(k){s(k)}})}}]);
//# sourceMappingURL=8210.a7c9f4044ce1a5f0.js.map