After the last update of ESPHome Buider:
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual esphome::climate::ClimateTraits esphome::ewh::EWHClimate::traits()':
src/esphome/components/ewh/climate/ewh_climate.cpp:25:42: warning: 'void esphome::climate::ClimateTraits::set_supports_current_temperature(bool)' is deprecated: This method is deprecated, use add_feature_flags() instead [-Wdeprecated-declarations]
25 | traits.set_supports_current_temperature(true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from src/esphome/components/climate/climate.h:9,
from src/esphome/components/ewh/climate/ewh_climate.h:4,
from src/esphome/components/ewh/climate/ewh_climate.cpp:3:
src/esphome/components/climate/climate_traits.h:86:8: note: declared here
86 | void set_supports_current_temperature(bool supports_current_temperature) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:35:38: error: use of deleted function 'void esphome::climate::ClimateTraits::set_supported_custom_presets(std::initializer_list<std::cxx11::basic_string >)'
35 | traits.set_supported_custom_presets({
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
36 | PRESET_MODE1, PRESET_MODE2, PRESET_MODE3, PRESET_NO_FROST,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | // PRESET_TIMER,
| ~~~~~~~~~~~~~~~~
38 | });
| ~~
src/esphome/components/climate/climate_traits.h:191:8: note: declared here
191 | void set_supported_custom_presets(std::initializer_liststd::string presets) = delete;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:35:38: note: use '-fdiagnostics-all-candidates' to display considered candidates
35 | traits.set_supported_custom_presets({
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
36 | PRESET_MODE1, PRESET_MODE2, PRESET_MODE3, PRESET_NO_FROST,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | // PRESET_TIMER,
| ~~~~~~~~~~~~~~~~
38 | });
| ~~
src/esphome/components/ewh/climate/ewh_climate.cpp:40:29: warning: 'void esphome::climate::ClimateTraits::set_supports_action(bool)' is deprecated: This method is deprecated, use add_feature_flags() instead [-Wdeprecated-declarations]
40 | traits.set_supports_action(true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
src/esphome/components/climate/climate_traits.h:130:8: note: declared here
130 | void set_supports_action(bool supports_action) {
| ^~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual void esphome::ewh::EWHClimate::control(const esphome::climate::ClimateCall&)':
src/esphome/components/ewh/climate/ewh_climate.cpp:72:48: error: request for member 'value_or' in '(& call)->esphome::climate::ClimateCall::get_custom_preset()', which is of non-class type 'const char*'
72 | const auto preset = call.get_custom_preset().value_or(this->custom_preset);
| ^~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:72:64: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
72 | const auto preset = call.get_custom_preset().value_or(this->custom_preset);
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:81:67: error: request for member 'has_value' in '(& call)->esphome::climate::ClimateCall::get_custom_preset()', which is of non-class type 'const char'
81 | if (wh_mode == ewh_mode_t::MODE_OFF && call.get_custom_preset().has_value()) {
| ^~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:82:11: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char* esphome::climate::Climate::custom_preset'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
82 | this->custom_preset = preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual void esphome::ewh::EWHClimate::on_state(const esphome::ewh::ewh_state_t&)':
src/esphome/components/ewh/climate/ewh_climate.cpp:109:24: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char* esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
109 | auto preset = this->custom_preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:138:24: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
138 | if (preset != this->custom_preset) {
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:139:11: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
139 | this->custom_preset = preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
Compiling .pioenvs/water-heater/src/esphome/components/ewh/vport/ewh_vport.cpp.o
*** [.pioenvs/water-heater/src/esphome/components/ewh/climate/ewh_climate.cpp.o] Error 1
========================= [FAILED] Took 52.46 seconds =========================
After the last update of ESPHome Buider:
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual esphome::climate::ClimateTraits esphome::ewh::EWHClimate::traits()':
src/esphome/components/ewh/climate/ewh_climate.cpp:25:42: warning: 'void esphome::climate::ClimateTraits::set_supports_current_temperature(bool)' is deprecated: This method is deprecated, use add_feature_flags() instead [-Wdeprecated-declarations]
25 | traits.set_supports_current_temperature(true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from src/esphome/components/climate/climate.h:9,
from src/esphome/components/ewh/climate/ewh_climate.h:4,
from src/esphome/components/ewh/climate/ewh_climate.cpp:3:
src/esphome/components/climate/climate_traits.h:86:8: note: declared here
86 | void set_supports_current_temperature(bool supports_current_temperature) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:35:38: error: use of deleted function 'void esphome::climate::ClimateTraits::set_supported_custom_presets(std::initializer_list<std::cxx11::basic_string >)'
35 | traits.set_supported_custom_presets({
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
36 | PRESET_MODE1, PRESET_MODE2, PRESET_MODE3, PRESET_NO_FROST,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | // PRESET_TIMER,
| ~~~~~~~~~~~~~~~~
38 | });
| ~~
src/esphome/components/climate/climate_traits.h:191:8: note: declared here
191 | void set_supported_custom_presets(std::initializer_liststd::string presets) = delete;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:35:38: note: use '-fdiagnostics-all-candidates' to display considered candidates
35 | traits.set_supported_custom_presets({
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
36 | PRESET_MODE1, PRESET_MODE2, PRESET_MODE3, PRESET_NO_FROST,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | // PRESET_TIMER,
| ~~~~~~~~~~~~~~~~
38 | });
| ~~
src/esphome/components/ewh/climate/ewh_climate.cpp:40:29: warning: 'void esphome::climate::ClimateTraits::set_supports_action(bool)' is deprecated: This method is deprecated, use add_feature_flags() instead [-Wdeprecated-declarations]
40 | traits.set_supports_action(true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
src/esphome/components/climate/climate_traits.h:130:8: note: declared here
130 | void set_supports_action(bool supports_action) {
| ^~~~~~~~~~~~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual void esphome::ewh::EWHClimate::control(const esphome::climate::ClimateCall&)':
src/esphome/components/ewh/climate/ewh_climate.cpp:72:48: error: request for member 'value_or' in '(& call)->esphome::climate::ClimateCall::get_custom_preset()', which is of non-class type 'const char*'
72 | const auto preset = call.get_custom_preset().value_or(this->custom_preset);
| ^~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:72:64: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
72 | const auto preset = call.get_custom_preset().value_or(this->custom_preset);
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:81:67: error: request for member 'has_value' in '(& call)->esphome::climate::ClimateCall::get_custom_preset()', which is of non-class type 'const char'
81 | if (wh_mode == ewh_mode_t::MODE_OFF && call.get_custom_preset().has_value()) {
| ^~~~~~~~~
src/esphome/components/ewh/climate/ewh_climate.cpp:82:11: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char* esphome::climate::Climate::custom_preset'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
82 | this->custom_preset = preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp: In member function 'virtual void esphome::ewh::EWHClimate::on_state(const esphome::ewh::ewh_state_t&)':
src/esphome/components/ewh/climate/ewh_climate.cpp:109:24: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char* esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
109 | auto preset = this->custom_preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:138:24: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
138 | if (preset != this->custom_preset) {
| ^~~~~~~~~~~~~
| get_custom_preset()
src/esphome/components/ewh/climate/ewh_climate.cpp:139:11: error: 'class esphome::ewh::EWHClimate' has no member named 'custom_preset'; did you mean 'const char esphome::climate::Climate::custom_preset_'? (accessible via 'const char* esphome::climate::Climate::get_custom_preset() const')
139 | this->custom_preset = preset;
| ^~~~~~~~~~~~~
| get_custom_preset()
Compiling .pioenvs/water-heater/src/esphome/components/ewh/vport/ewh_vport.cpp.o
*** [.pioenvs/water-heater/src/esphome/components/ewh/climate/ewh_climate.cpp.o] Error 1
========================= [FAILED] Took 52.46 seconds =========================