mirror of
https://github.com/esphome/esphome.git
synced 2025-11-15 14:25:45 +00:00
remove testing
This commit is contained in:
@@ -322,13 +322,10 @@ climate::ClimateTraits ThermostatClimate::traits() {
|
|||||||
traits.add_supported_preset(it.first);
|
traits.add_supported_preset(it.first);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom presets and fan modes are set directly from Python (includes all non-standard preset names from map)
|
// Custom presets are set directly from Python (includes all non-standard preset names from map)
|
||||||
if (!this->additional_custom_presets_.empty()) {
|
if (!this->additional_custom_presets_.empty()) {
|
||||||
traits.set_supported_custom_presets(this->additional_custom_presets_);
|
traits.set_supported_custom_presets(this->additional_custom_presets_);
|
||||||
}
|
}
|
||||||
if (!this->additional_custom_fan_modes_.empty()) {
|
|
||||||
traits.set_supported_custom_fan_modes(this->additional_custom_fan_modes_);
|
|
||||||
}
|
|
||||||
|
|
||||||
return traits;
|
return traits;
|
||||||
}
|
}
|
||||||
@@ -1619,10 +1616,6 @@ void ThermostatClimate::dump_config() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermostatClimate::set_custom_fan_modes(std::initializer_list<const char *> custom_fan_modes) {
|
|
||||||
this->additional_custom_fan_modes_ = custom_fan_modes;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ThermostatClimate::set_custom_presets(std::initializer_list<const char *> custom_presets) {
|
void ThermostatClimate::set_custom_presets(std::initializer_list<const char *> custom_presets) {
|
||||||
this->additional_custom_presets_ = custom_presets;
|
this->additional_custom_presets_ = custom_presets;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user