"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["80275"],{38238:function(t,i,n){n.a(t,async function(t,s){try{n.r(i);var e,h,r,a=n(72153),o=n(44734),u=n(43080),c=n(69683),f=n(6454),g=(n(16280),n(40445)),y=n(96196),w=n(77845),_=n(24247),d=n(784),v=n(79757),l=n(85979),p=t([v,_]);[v,_]=p.then?(await p)():p;var A=function(t){function i(){return(0,o.A)(this,i),(0,c.A)(this,i,arguments)}return(0,f.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,d.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,_.A_)(t,this.hass)):(0,y.qy)(e||(e=(0,a.A)([' <hui-warning .hass="','"> '," </hui-warning> "])),this.hass,(0,l.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,w.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,g.Cg)([(0,w.wk)()],A.prototype,"_config",void 0),A=(0,g.Cg)([(0,w.EM)("hui-update-entity-row")],A),s()}catch(k){s(k)}})}}]);
//# sourceMappingURL=80275.2fe1e11b380e90f4.js.map