From aa9f5a7204918a6eca2f575b8a290d13fcaefd24 Mon Sep 17 00:00:00 2001 From: Melik <10296053+melyux@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:55:31 -0800 Subject: [PATCH] Fix typo with auto_sub_mode --- components/cn105/hp_readings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cn105/hp_readings.cpp b/components/cn105/hp_readings.cpp index d59e600..a595926 100644 --- a/components/cn105/hp_readings.cpp +++ b/components/cn105/hp_readings.cpp @@ -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); }