add missing subscribes

This commit is contained in:
MichaelDvP
2023-08-31 08:07:06 +02:00
parent b7611c67bb
commit 7e45c89fcd
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ WebEntityService::WebEntityService(AsyncWebServer * server, FS * fs, SecurityMan
void WebEntityService::begin() { void WebEntityService::begin() {
_fsPersistence.readFromFS(); _fsPersistence.readFromFS();
EMSESP::logger().info("Starting Custom entity service"); EMSESP::logger().info("Starting Custom entity service");
Mqtt::subscribe(EMSdevice::DeviceType::CUSTOM, "custom/#", nullptr); // use empty function callback
} }
// this creates the entity file, saving it to the FS // this creates the entity file, saving it to the FS

View File

@@ -31,6 +31,7 @@ WebSchedulerService::WebSchedulerService(AsyncWebServer * server, FS * fs, Secur
void WebSchedulerService::begin() { void WebSchedulerService::begin() {
_fsPersistence.readFromFS(); _fsPersistence.readFromFS();
EMSESP::logger().info("Starting Scheduler service"); EMSESP::logger().info("Starting Scheduler service");
Mqtt::subscribe(EMSdevice::DeviceType::SCHEDULER, "scheduler/#", nullptr); // use empty function callback
} }
// this creates the scheduler file, saving it to the FS // this creates the scheduler file, saving it to the FS