Update esphome/components/bedjet/climate/bedjet_climate.cpp

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Alex Boyd 2024-04-28 22:57:55 -06:00
parent 502ff053b4
commit 89ddcd9654
1 changed files with 5 additions and 3 deletions

View File

@ -230,9 +230,11 @@ void BedJetClimate::on_status(const BedjetStatusPacket *data) {
if (converted_temp > 0)
this->target_temperature = converted_temp;
converted_temp = bedjet_temp_to_c(this->temperature_source_ == TEMPERATURE_SOURCE_OUTLET ? data->actual_temp_step
: this->temperature_source_ == TEMPERATURE_SOURCE_AMBIENT ? data->ambient_temp_step
: 0);
if (this->temperature_source_ == TEMPERATURE_SOURCE_OUTLET) {
converted_temp = bedjet_temp_to_c(data->actual_temp_step);
} else {
converted_temp = bedjet_temp_to_c(data->ambient_temp_step);
}
if (converted_temp > 0) {
this->current_temperature = converted_temp;
}