mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Tuya fan component uses enum datapoint type for speed instead of integer (#2182)
Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
This commit is contained in:
parent
9de40c26eb
commit
481e0e98f8
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ void TuyaFan::write_state() {
|
||||||
}
|
}
|
||||||
if (this->speed_id_.has_value()) {
|
if (this->speed_id_.has_value()) {
|
||||||
ESP_LOGV(TAG, "Setting speed: %d", this->fan_->speed);
|
ESP_LOGV(TAG, "Setting speed: %d", this->fan_->speed);
|
||||||
this->parent_->set_integer_datapoint_value(*this->speed_id_, this->fan_->speed - 1);
|
this->parent_->set_enum_datapoint_value(*this->speed_id_, this->fan_->speed - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue