Skip to content

Commit

Permalink
Update fan-percent-button-row.js
Browse files Browse the repository at this point in the history
  • Loading branch information
finity69x2 authored Apr 10, 2021
1 parent 72906fa commit cd7562a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/fan-percent-button-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ class CustomFanPercentRow extends Polymer.Element {
const level = e.currentTarget.getAttribute('name');
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') {
Expand Down

0 comments on commit cd7562a

Please sign in to comment.