From b24e99c56ca9b086752b5501c785f6b629582d43 Mon Sep 17 00:00:00 2001 From: Necroneco Date: Mon, 23 Oct 2023 16:26:31 +0800 Subject: [PATCH] Fix oscillating handler in more info fan card (#18305) (#18306) --- src/dialogs/more-info/controls/more-info-fan.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogs/more-info/controls/more-info-fan.ts b/src/dialogs/more-info/controls/more-info-fan.ts index af315e1dc815..8c8f566cdcdb 100644 --- a/src/dialogs/more-info/controls/more-info-fan.ts +++ b/src/dialogs/more-info/controls/more-info-fan.ts @@ -87,6 +87,9 @@ class MoreInfoFan extends LitElement { _handleOscillating(ev) { const newVal = ev.target.value === "true"; + const oldVal = this.stateObj?.attributes.oscillating; + + if (oldVal === newVal) return; this.hass.callService("fan", "oscillate", { entity_id: this.stateObj!.entity_id,