load Commands first before Scheduler

This commit is contained in:
proddy
2026-06-08 22:34:50 +02:00
parent 8496a911da
commit dc096a9856

View File

@@ -1131,7 +1131,7 @@ bool EMSESP::process_telegram(const std::shared_ptr<const Telegram> & telegram)
wait_validate_ = 0; wait_validate_ = 0;
} }
// Check for custom entities reding this telegram // check for custom entities reding this telegram
webCustomEntityService.get_value(telegram); webCustomEntityService.get_value(telegram);
// check for common types, like the Version(0x02) // check for common types, like the Version(0x02)
@@ -1182,6 +1182,7 @@ bool EMSESP::process_telegram(const std::shared_ptr<const Telegram> & telegram)
} }
} }
} }
// handle unknown telegrams // handle unknown telegrams
if (!telegram_found) { if (!telegram_found) {
// mark nonempty telegrams as ignored // mark nonempty telegrams as ignored
@@ -1763,8 +1764,8 @@ void EMSESP::start() {
// start the core web services, as this loads the settings from the filesystem // start the core web services, as this loads the settings from the filesystem
// this will also handle any MQTT subscriptions // this will also handle any MQTT subscriptions
webCustomizationService.begin(); // load the customizations webCustomizationService.begin(); // load the customizations
webSchedulerService.begin(); // load the scheduler events
webCommandService.begin(); // load the user commands webCommandService.begin(); // load the user commands
webSchedulerService.begin(); // load the scheduler events
webCustomEntityService.begin(); // load the custom telegram reads webCustomEntityService.begin(); // load the custom telegram reads
// perform any system upgrades // perform any system upgrades