Skip to content

Commit

Permalink
Merge pull request #30 from zhushp/patch-1
Browse files Browse the repository at this point in the history
Update fan-percent-button-row.js
  • Loading branch information
finity69x2 authored May 24, 2022
2 parents 0d4940e + 2aaf741 commit 68263fb
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 68263fb

Please sign in to comment.