"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["96654"],{46493:function(t,s,i){i.a(t,async function(t,n){try{i.r(s);i(16280);var e=i(40445),a=i(96196),h=i(77845),o=i(25240),r=i(22675),c=i(784),g=i(79757),f=i(85979),u=t([o,g,f]);[o,g,f]=u.then?(await u)():u;let y,d,l,w,_=t=>t;class p extends a.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,c.LX)(this,t)}render(){if(!this._config||!this.hass)return a.s6;const t=this.hass.states[this._config.entity];if(!t)return(0,a.qy)(y||(y=_` <hui-warning .hass="${0}"> ${0} </hui-warning> `),this.hass,(0,f.j)(this.hass,this._config.entity));const s="open"===t.state||"closed"===t.state||(0,r.g0)(t.state);return(0,a.qy)(d||(d=_` <hui-generic-entity-row .hass="${0}" .config="${0}" .catchInteraction="${0}"> ${0} </hui-generic-entity-row> `),this.hass,this._config,!s,s?(0,a.qy)(l||(l=_` <ha-entity-toggle .hass="${0}" .stateObj="${0}"></ha-entity-toggle> `),this.hass,t):(0,a.qy)(w||(w=_` <div class="text-content"> ${0} </div> `),this.hass.formatEntityState(t)))}}(0,e.Cg)([(0,h.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,e.Cg)([(0,h.wk)()],p.prototype,"_config",void 0),p=(0,e.Cg)([(0,h.EM)("hui-valve-entity-row")],p),n()}catch(y){n(y)}})}}]);
//# sourceMappingURL=96654.83ea2e1f58769802.js.map