Skip to content

Commit

Permalink
Fix tuya fan speed send (esphome#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrnrth authored Jul 4, 2021
1 parent d527835 commit 9e400a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/tuya/fan/tuya_fan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void TuyaFan::write_state() {
}
if (this->speed_id_.has_value()) {
ESP_LOGV(TAG, "Setting speed: %d", this->fan_->speed);
this->parent_->set_datapoint_value(*this->speed_id_, this->fan_->speed);
this->parent_->set_datapoint_value(*this->speed_id_, this->fan_->speed - 1);
}
}

Expand Down

0 comments on commit 9e400a7

Please sign in to comment.