Skip to content

Commit

Permalink
Update esphome/components/bedjet/climate/bedjet_climate.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
  • Loading branch information
javawizard and jesserockz committed Apr 29, 2024
1 parent 502ff05 commit 89ddcd9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions esphome/components/bedjet/climate/bedjet_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 89ddcd9

Please sign in to comment.