Update panasonic_heatpump_climate.cpp

This commit is contained in:
ElVit 2025-11-25 09:33:50 +01:00 committed by GitHub
parent b4a1cc945d
commit 2ee3a1c0ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -116,15 +116,12 @@ void PanasonicHeatpumpClimate::publish_new_state(const std::vector<uint8_t>& dat
};
if (!this->get_traits().has_feature_flags(climate::CLIMATE_REQUIRES_TWO_POINT_TARGET_TEMPERATURE) &&
this->mode == new_mode &&
this->target_temperature == new_target_temp_heat &&
this->mode == new_mode && this->target_temperature == new_target_temp_heat &&
this->current_temperature == new_current_temp)
return;
if (this->get_traits().has_feature_flags(climate::CLIMATE_REQUIRES_TWO_POINT_TARGET_TEMPERATURE) &&
this->mode == new_mode &&
this->target_temperature_high == new_target_temp_heat &&
this->target_temperature_low == new_target_temp_cool &&
this->current_temperature == new_current_temp)
this->mode == new_mode && this->target_temperature_high == new_target_temp_heat &&
this->target_temperature_low == new_target_temp_cool && this->current_temperature == new_current_temp)
return;
if (new_mode != 255)