mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
parent
768344c3f7
commit
b24e99c56c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user