You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Glad to be back on the project.
My project is based on ESP32dev, framework - arduino.
The following error occurred during compilation
src/esphome/components/rtc_scheduler/rtc_scheduler.cpp: In constructor 'esphome::rtc_scheduler::RTCScheduler::RTCScheduler(const string&)': src/esphome/components/rtc_scheduler/rtc_scheduler. cpp:16:70: error: no matching function for call to 'esphome::EntityBase::EntityBase(const string&)' RTCScheduler::RTCScheduler(const std::string &name) : EntityBase(name) {} ^ In file included from src/esphome/components/rtc_scheduler/rtc_scheduler.h:4, from src/esphome/components/rtc_scheduler/automation.h:5, from src/esphome/components/rtc_scheduler/rtc_scheduler.cpp:1: src/esphome/core/entity_base.h:16:7: note: candidate: 'esphome::EntityBase::EntityBase()' class EntityBase { ^~~~~~~~~~ src/esphome/core/entity_base. h:16:7: note: candidate expects 0 arguments, 1 provided src/esphome/core/entity_base.h:16:7: note: candidate: 'constexpr esphome::EntityBase::EntityBase(const esphome::EntityBase&)' src/esphome/core/entity_base. h:16:7: note: no known conversion for argument 1 from 'const string' {aka 'const std::__cxx11::basic_string<char>'} to 'const esphome::EntityBase&' src/esphome/core/entity_base.h:16:7: note: candidate: 'constexpr esphome::EntityBase::EntityBase(esphome::EntityBase&&)' src/esphome/core/entity_base. h:16:7: note: no known conversion for argument 1 from 'const string' {aka 'const std::__cxx11::basic_string<char>'} to 'esphome::EntityBase&&' *** [.pioenvs/esp32-1/src/esphome/components/rtc_scheduler/rtc_scheduler.cpp.o] Error 1
Replaced RTCScheduler::RTCScheduler(const std::string &name) : EntityBase(name) {} code in files: rtc_scheduler.cpp
, rtc_scheduler_hub.cpp to the following code: RTCScheduler::RTCScheduler(const std::string &name) { this->set_name(name.c_str()); } , the compilation was successful.
The code seems to work.
my configuration file : schedule-test (2).zip
The text was updated successfully, but these errors were encountered:
Hello. Glad to be back on the project.
My project is based on ESP32dev, framework - arduino.
The following error occurred during compilation
Replaced
RTCScheduler::RTCScheduler(const std::string &name) : EntityBase(name) {}
code in files: rtc_scheduler.cpp, rtc_scheduler_hub.cpp to the following code:
RTCScheduler::RTCScheduler(const std::string &name) { this->set_name(name.c_str()); }
, the compilation was successful.The code seems to work.
my configuration file :
schedule-test (2).zip
The text was updated successfully, but these errors were encountered: