Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTC_Scheduler #1

Open
Electrick5 opened this issue Jan 12, 2024 · 0 comments
Open

RTC_Scheduler #1

Electrick5 opened this issue Jan 12, 2024 · 0 comments

Comments

@Electrick5
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant