From 2aaf741a99b805371f5e8b24f48aa8bb18de2d9e Mon Sep 17 00:00:00 2001 From: zhushp Date: Tue, 17 May 2022 16:26:09 +0800 Subject: [PATCH] Update fan-percent-button-row.js Remove set_percentage to 0 and the off signal has been sent to the fan. --- dist/fan-percent-button-row.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/dist/fan-percent-button-row.js b/dist/fan-percent-button-row.js index 8af7d17..3f8b64c 100644 --- a/dist/fan-percent-button-row.js +++ b/dist/fan-percent-button-row.js @@ -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});