mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[gree] Encode temperature as offset from 16°C (#19718)
This commit is contained in:
@@ -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_() {
|
||||
|
||||
Reference in New Issue
Block a user