[gree] Encode temperature as offset from 16°C (#19718)

This commit is contained in:
Jonathan Swoboda
2026-09-26 08:41:52 -04:00
committed by GitHub
parent a7e0c0f8a2
commit 72ac32a2c4
+1 -1
View File
@@ -226,7 +226,7 @@ uint8_t GreeClimate::vertical_swing_() {
}
uint8_t GreeClimate::temperature_() {
return (uint8_t) roundf(clamp<float>(this->target_temperature, GREE_TEMP_MIN, GREE_TEMP_MAX));
return (uint8_t) roundf(clamp<float>(this->target_temperature, GREE_TEMP_MIN, GREE_TEMP_MAX)) - GREE_TEMP_MIN;
}
uint8_t GreeClimate::preset_() {