1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 21:53:48 +00:00

[gree] Use EnumBitmask add() instead of insert() for climate traits

This commit is contained in:
J. Nick Koston
2025-10-21 22:02:53 -10:00
parent 4dba685898
commit 960e6da4f7

View File

@@ -8,9 +8,9 @@ static const char *const TAG = "gree.climate";
void GreeClimate::set_model(Model model) {
if (model == GREE_YX1FF) {
this->fan_modes_.insert(climate::CLIMATE_FAN_QUIET); // YX1FF 4 speed
this->presets_.insert(climate::CLIMATE_PRESET_NONE); // YX1FF sleep mode
this->presets_.insert(climate::CLIMATE_PRESET_SLEEP); // YX1FF sleep mode
this->fan_modes_.add(climate::CLIMATE_FAN_QUIET); // YX1FF 4 speed
this->presets_.add(climate::CLIMATE_PRESET_NONE); // YX1FF sleep mode
this->presets_.add(climate::CLIMATE_PRESET_SLEEP); // YX1FF sleep mode
}
this->model_ = model;