mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
parent
768344c3f7
commit
b24e99c56c
@ -87,6 +87,9 @@ class MoreInfoFan extends LitElement {
|
|||||||
|
|
||||||
_handleOscillating(ev) {
|
_handleOscillating(ev) {
|
||||||
const newVal = ev.target.value === "true";
|
const newVal = ev.target.value === "true";
|
||||||
|
const oldVal = this.stateObj?.attributes.oscillating;
|
||||||
|
|
||||||
|
if (oldVal === newVal) return;
|
||||||
|
|
||||||
this.hass.callService("fan", "oscillate", {
|
this.hass.callService("fan", "oscillate", {
|
||||||
entity_id: this.stateObj!.entity_id,
|
entity_id: this.stateObj!.entity_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user