"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["96654"],{46493:function(t,i,n){n.a(t,async function(t,s){try{n.r(i);var e,a,h,o,r=n(72153),c=n(44734),u=n(43080),f=n(69683),g=n(6454),y=(n(16280),n(40445)),v=n(96196),l=n(77845),d=(n(25240),n(22675)),w=n(784),_=n(79757),p=n(85979),k=t([_]);_=(k.then?(await k)():k)[0];var A=function(t){function i(){return(0,c.A)(this,i),(0,f.A)(this,i,arguments)}return(0,g.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,w.LX)(this,t)}},{key:"render",value:function(){if(!this._config||!this.hass)return v.s6;var t=this.hass.states[this._config.entity];if(!t)return(0,v.qy)(e||(e=(0,r.A)([' <hui-warning .hass="','"> '," </hui-warning> "])),this.hass,(0,p.j)(this.hass,this._config.entity));var i="open"===t.state||"closed"===t.state||(0,d.g0)(t.state);return(0,v.qy)(a||(a=(0,r.A)([' <hui-generic-entity-row .hass="','" .config="','" .catchInteraction="','"> '," </hui-generic-entity-row> "])),this.hass,this._config,!i,i?(0,v.qy)(h||(h=(0,r.A)([' <ha-entity-toggle .hass="','" .stateObj="','"></ha-entity-toggle> '])),this.hass,t):(0,v.qy)(o||(o=(0,r.A)([' <div class="text-content"> '," </div> "])),this.hass.formatEntityState(t)))}}])}(v.WF);(0,y.Cg)([(0,l.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,y.Cg)([(0,l.wk)()],A.prototype,"_config",void 0),A=(0,y.Cg)([(0,l.EM)("hui-valve-entity-row")],A),s()}catch(C){s(C)}})}}]);
//# sourceMappingURL=96654.16ae154c50e91da4.js.map