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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user