@@ -269,17 +269,17 @@ function ce(e,t){return(({finisher:e,descriptor:t})=>(a,i)=>{var s;if(void 0===i
${this.getValue()}
- `}getValue(){const e=Number(Math.round(this.value*this.scaleFactor));return!e&&this.zeroValue?this.zeroValue:`${e} ${this.getUnit()}`}getUnit(){switch(this.unit){case"sec":return vi("components.time_slider.seconds",this.hass.language);case"min":return vi("components.time_slider.minutes",this.hass.language);default:return""}}getSlider(){return q`
+ `}getValue(){const e=Qi(this.value*this.scaleFactor,this._step);return!e&&this.zeroValue?this.zeroValue:`${e} ${this.getUnit()}`}getUnit(){switch(this.unit){case Zi.Seconds:return vi("components.time_slider.seconds",this.hass.language);case Zi.Minutes:return vi("components.time_slider.minutes",this.hass.language);default:return""}}getSlider(){const e=Qi(this.value*this.scaleFactor,this._step);return q`
- `}updateValue(e){const t=Number(e.target.value);this.value=Math.round(t/this.scaleFactor)}toggleUnit(){this.unit="min"==this.unit?"sec":"min",this.scaleFactor="min"==this.unit?1/60:1,this.step="min"==this.unit?1:5}};Zi.styles=o`
+ `}updateValue(e){const t=Number(e.target.value);this.value=Qi(t,this._step)/this.scaleFactor}toggleUnit(){this.setUnit(this.unit==Zi.Minutes?Zi.Seconds:Zi.Minutes)}};Yi.styles=o`
:host {
display: flex;
flex-direction: column;
@@ -322,13 +322,13 @@ function ce(e,t){return(({finisher:e,descriptor:t})=>(a,i)=>{var s;if(void 0===i
.disabled {
color: var(--disabled-text-color);
}
- `,t([de({type:Number})],Zi.prototype,"min",void 0),t([de({type:Number})],Zi.prototype,"max",void 0),t([de({type:Number})],Zi.prototype,"step",void 0),t([de({type:Number})],Zi.prototype,"value",void 0),t([de()],Zi.prototype,"scaleFactor",void 0),t([de({type:String})],Zi.prototype,"unit",void 0),t([de({type:Boolean})],Zi.prototype,"disabled",void 0),t([de({type:String})],Zi.prototype,"zeroValue",void 0),Zi=t([re("time-slider")],Zi);var Qi="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Yi="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
+ `,t([de({type:Number})],Yi.prototype,"min",void 0),t([de({type:Number})],Yi.prototype,"max",void 0),t([de({type:Number})],Yi.prototype,"value",void 0),t([de()],Yi.prototype,"scaleFactor",void 0),t([de({type:Zi})],Yi.prototype,"unit",void 0),t([de({type:Boolean})],Yi.prototype,"disabled",void 0),t([de({type:String})],Yi.prototype,"zeroValue",void 0),Yi=t([re("time-slider")],Yi);var Wi="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Xi="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const Wi=2,Xi=6,Ji=e=>(...t)=>({_$litDirective$:e,values:t});class es{constructor(e){}T(e,t,a){this.Σdt=e,this.M=t,this.Σct=a}S(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let ts=class extends ne{constructor(){super(...arguments),this.label="",this.items=[],this.clearable=!1,this.icons=!1,this.disabled=!1,this.invalid=!1,this.rowRenderer=e=>{const t=Mi(e.description);return this.icons?q`
+const Ji=2,es=6,ts=e=>(...t)=>({_$litDirective$:e,values:t});class as{constructor(e){}T(e,t,a){this.Σdt=e,this.M=t,this.Σct=a}S(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let is=class extends ne{constructor(){super(...arguments),this.label="",this.items=[],this.clearable=!1,this.icons=!1,this.disabled=!1,this.invalid=!1,this.rowRenderer=e=>{const t=Mi(e.description);return this.icons?q`