HA register all values from custom and scheduler

This commit is contained in:
MichaelDvP
2023-09-09 12:11:30 +02:00
parent 83211e0ef8
commit 4bec32ea56
4 changed files with 23 additions and 6 deletions

View File

@@ -58,6 +58,9 @@ class WebSchedulerService : public StatefulService<WebScheduler> {
bool has_commands();
bool command_setvalue(const char * value, const std::string name);
bool get_value_info(JsonObject & output, const char * cmd);
void ha_reset() {
ha_registered_ = false;
}
// make all functions public so we can test in the debug and standalone mode
#ifndef EMSESP_STANDALONE
@@ -69,6 +72,7 @@ class WebSchedulerService : public StatefulService<WebScheduler> {
FSPersistence<WebScheduler> _fsPersistence;
std::list<ScheduleItem> * scheduleItems; // pointer to the list of schedule events
bool ha_registered_ = false;
};
} // namespace emsesp