mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
fix dump preset string type (#3863)
This commit is contained in:
parent
ed443c6153
commit
e8ff36d1f3
2 changed files with 2 additions and 4 deletions
|
@ -935,10 +935,8 @@ bool ThermostatClimate::supplemental_heating_required_() {
|
|||
(this->supplemental_action_ == climate::CLIMATE_ACTION_HEATING));
|
||||
}
|
||||
|
||||
void ThermostatClimate::dump_preset_config_(const std::string &preset, const ThermostatClimateTargetTempConfig &config,
|
||||
void ThermostatClimate::dump_preset_config_(const char *preset_name, const ThermostatClimateTargetTempConfig &config,
|
||||
bool is_default_preset) {
|
||||
const auto *preset_name = preset.c_str();
|
||||
|
||||
ESP_LOGCONFIG(TAG, " %s Is Default: %s", preset_name, YESNO(is_default_preset));
|
||||
|
||||
if (this->supports_heat_) {
|
||||
|
|
|
@ -228,7 +228,7 @@ class ThermostatClimate : public climate::Climate, public Component {
|
|||
bool supplemental_cooling_required_();
|
||||
bool supplemental_heating_required_();
|
||||
|
||||
void dump_preset_config_(const std::string &preset_name, const ThermostatClimateTargetTempConfig &config,
|
||||
void dump_preset_config_(const char *preset_name, const ThermostatClimateTargetTempConfig &config,
|
||||
bool is_default_preset);
|
||||
|
||||
/// The sensor used for getting the current temperature
|
||||
|
|
Loading…
Reference in a new issue