Skip to content

Commit

Permalink
Use last known status to initialize value
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldn committed Apr 24, 2024
1 parent e830716 commit 4d2f20f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/haier/hon_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ void HonClimate::initialization() {
this->settings_ = recovered;
else
this->settings_ = { hon_protocol::VerticalSwingMode::CENTER, hon_protocol::HorizontalSwingMode::CENTER };
this->current_vertical_swing_ = this->settings_.last_vertiacal_swing;
this->current_horizontal_swing_ = this->settings_.last_horizontal_swing;
}

haier_protocol::HaierMessage HonClimate::get_control_message() {
Expand Down

0 comments on commit 4d2f20f

Please sign in to comment.