From 0be5cf076c21aee3479131ee88e8efb6c3fd914d Mon Sep 17 00:00:00 2001 From: Cory Charlton Date: Mon, 16 Dec 2024 19:03:46 -0800 Subject: [PATCH] Show indicator on all sliders --- src/cards/cover-card/controls/cover-position-control.ts | 1 + src/cards/fan-card/controls/fan-percentage-control.ts | 1 + .../humidifier-card/controls/humidifier-humidity-control.ts | 1 + src/cards/light-card/controls/light-brightness-control.ts | 1 + .../media-player-card/controls/media-player-volume-control.ts | 1 + src/cards/number-card/controls/number-value-control.ts | 1 + 6 files changed, 6 insertions(+) diff --git a/src/cards/cover-card/controls/cover-position-control.ts b/src/cards/cover-card/controls/cover-position-control.ts index 718ed599..a4013337 100644 --- a/src/cards/cover-card/controls/cover-position-control.ts +++ b/src/cards/cover-card/controls/cover-position-control.ts @@ -38,6 +38,7 @@ export class CoverPositionControl extends LitElement { .value=${position} .disabled=${!isAvailable(this.entity)} .showActive=${true} + .showIndicator=${true} @change=${this.onChange} @current-change=${this.onCurrentChange} /> diff --git a/src/cards/fan-card/controls/fan-percentage-control.ts b/src/cards/fan-card/controls/fan-percentage-control.ts index c775b60c..200710c0 100644 --- a/src/cards/fan-card/controls/fan-percentage-control.ts +++ b/src/cards/fan-card/controls/fan-percentage-control.ts @@ -39,6 +39,7 @@ export class FanPercentageControl extends LitElement { .disabled=${!isAvailable(this.entity)} .inactive=${!isActive(this.entity)} .showActive=${true} + .showIndicator=${true} @change=${this.onChange} @current-change=${this.onCurrentChange} step=${computePercentageStep(this.entity)} diff --git a/src/cards/humidifier-card/controls/humidifier-humidity-control.ts b/src/cards/humidifier-card/controls/humidifier-humidity-control.ts index e7b7ff9d..13327dcd 100644 --- a/src/cards/humidifier-card/controls/humidifier-humidity-control.ts +++ b/src/cards/humidifier-card/controls/humidifier-humidity-control.ts @@ -44,6 +44,7 @@ export class HumidifierHumidityControl extends LitElement { .disabled=${!isAvailable(this.entity)} .inactive=${!isActive(this.entity)} .showActive=${true} + .showIndicator=${true} .min=${min} .max=${max} @change=${this.onChange} diff --git a/src/cards/light-card/controls/light-brightness-control.ts b/src/cards/light-card/controls/light-brightness-control.ts index b14ae573..e8809e4b 100644 --- a/src/cards/light-card/controls/light-brightness-control.ts +++ b/src/cards/light-card/controls/light-brightness-control.ts @@ -38,6 +38,7 @@ export class LightBrighnessControl extends LitElement { .disabled=${!isAvailable(this.entity)} .inactive=${!isActive(this.entity)} .showActive=${true} + .showIndicator=${true} @change=${this.onChange} @current-change=${this.onCurrentChange} /> diff --git a/src/cards/media-player-card/controls/media-player-volume-control.ts b/src/cards/media-player-card/controls/media-player-volume-control.ts index 4116d0b3..7768ab17 100644 --- a/src/cards/media-player-card/controls/media-player-volume-control.ts +++ b/src/cards/media-player-card/controls/media-player-volume-control.ts @@ -93,6 +93,7 @@ export class MediaPlayerVolumeControls extends LitElement { .showActive=${true} .min=${0} .max=${100} + .showIndicator=${true} @change=${this.handleSliderChange} @current-change=${this.handleSliderCurrentChange} />` diff --git a/src/cards/number-card/controls/number-value-control.ts b/src/cards/number-card/controls/number-value-control.ts index 4e0f45cd..c08d4cbf 100644 --- a/src/cards/number-card/controls/number-value-control.ts +++ b/src/cards/number-card/controls/number-value-control.ts @@ -70,6 +70,7 @@ export class NumberValueControl extends LitElement { .disabled=${!isAvailable(this.entity)} .inactive=${!isActive(this.entity)} .showActive=${true} + .showIndicator=${true} .min=${this.entity.attributes.min} .max=${this.entity.attributes.max} .step=${this.entity.attributes.step}