Skip to content

Commit

Permalink
Update fan-percent-button-row.js
Browse files Browse the repository at this point in the history
Remove set_percentage to 0 and the off signal has been sent to the fan.
  • Loading branch information
zhushp authored May 17, 2022
1 parent 0d4940e commit 2aaf741
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dist/fan-percent-button-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ class CustomFanPercentRow extends Polymer.Element {
const param = {entity_id: this._config.entity};
if( level == 'off' ){
this.hass.callService('fan', 'turn_off', param);
param.percentage = this._offSP;
this.hass.callService('fan', 'set_percentage', param);
} else if (level == 'low') {
if(this._config.sendStateWithSpeed){
this.hass.callService('fan', 'turn_on', {entity_id: this._config.entity, percentage: this._lowSP});
Expand Down

0 comments on commit 2aaf741

Please sign in to comment.