Skip to content

Commit

Permalink
Merge pull request #213 from melyux/update-on-changes
Browse files Browse the repository at this point in the history
Fix typo with auto_sub_mode
  • Loading branch information
phidauex authored Jan 8, 2025
2 parents 106a2d3 + aa9f5a7 commit 0eddd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cn105/hp_readings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void CN105Climate::getPowerFromResponsePacket() {
this->currentSettings.sub_mode = receivedSettings.sub_mode;
this->Sub_mode_sensor_->publish_state(receivedSettings.sub_mode);
}
if (this->Auto_sub_mode_sensor_ != nullptr && (!this->currentSettings.sub_mode || strcmp(receivedSettings.auto_sub_mode, this->currentSettings.auto_sub_mode) != 0)) {
if (this->Auto_sub_mode_sensor_ != nullptr && (!this->currentSettings.auto_sub_mode || strcmp(receivedSettings.auto_sub_mode, this->currentSettings.auto_sub_mode) != 0)) {
this->currentSettings.auto_sub_mode = receivedSettings.auto_sub_mode;
this->Auto_sub_mode_sensor_->publish_state(receivedSettings.auto_sub_mode);
}
Expand Down

0 comments on commit 0eddd04

Please sign in to comment.