Skip to content

Commit

Permalink
Merge pull request #97 from echavet/echavet/issue95
Browse files Browse the repository at this point in the history
settings.vane and settings.wideVane not currentSettings
  • Loading branch information
echavet authored May 10, 2024
2 parents f0179b4 + 948d51e commit 720a8e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/cn105/hp_readings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ void CN105Climate::updateExtraSelectComponents(heatpumpSettings& settings) {
if (this->vertical_vane_select_ != nullptr) {
if (this->hasChanged(this->vertical_vane_select_->state.c_str(), settings.vane, "select vane")) {
ESP_LOGI(TAG, "vane setting (extra select component) changed");
this->vertical_vane_select_->publish_state(currentSettings.vane);
this->vertical_vane_select_->publish_state(settings.vane);
}
}
if (this->horizontal_vane_select_ != nullptr) {
if (this->hasChanged(this->horizontal_vane_select_->state.c_str(), settings.wideVane, "select wideVane")) {
ESP_LOGI(TAG, "widevane setting (extra select component) changed");
this->horizontal_vane_select_->publish_state(currentSettings.wideVane);
this->horizontal_vane_select_->publish_state(settings.wideVane);
}
}
}
Expand Down

0 comments on commit 720a8e3

Please sign in to comment.