"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["80275"],{38238:function(t,s,i){i.a(t,async function(t,n){try{i.r(s);i(16280);var e=i(40445),h=i(96196),a=i(77845),r=i(24247),o=i(784),c=i(79757),g=i(85979),u=t([c,g,r]);[c,g,r]=u.then?(await u)():u;let f,y,d,w=t=>t;class _ extends h.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,o.LX)(this,t)}render(){if(!this._config||!this.hass)return h.s6;const t=this.hass.states[this._config.entity];return t?(0,h.qy)(y||(y=w` <hui-generic-entity-row .hass="${0}" .config="${0}"> ${0} </hui-generic-entity-row> `),this.hass,this._config,(0,r.A_)(t,this.hass)):(0,h.qy)(f||(f=w` <hui-warning .hass="${0}"> ${0} </hui-warning> `),this.hass,(0,g.j)(this.hass,this._config.entity))}}_.styles=(0,h.AH)(d||(d=w`div{text-align:right}`)),(0,e.Cg)([(0,a.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,e.Cg)([(0,a.wk)()],_.prototype,"_config",void 0),_=(0,e.Cg)([(0,a.EM)("hui-update-entity-row")],_),n()}catch(f){n(f)}})}}]);
//# sourceMappingURL=80275.079befd4ac744d3c.js.map