Skip to content

Commit

Permalink
Merge pull request #2094 from MichaelDvP/dev
Browse files Browse the repository at this point in the history
fix empty scheduler on dashboard
  • Loading branch information
proddy authored Oct 14, 2024
2 parents f279162 + 2cb55be commit 5f35659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/WebDataService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ void WebDataService::dashboard_data(AsyncWebServerRequest * request) {
}

// show scheduler, with name, on/off
if (EMSESP::webSchedulerService.count_entities()) {
if (EMSESP::webSchedulerService.count_entities(true)) {
JsonObject obj = root.add<JsonObject>();
obj["id"] = EMSdevice::DeviceTypeUniqueID::SCHEDULER_UID; // it's unique id
obj["t"] = EMSdevice::DeviceType::SCHEDULER; // device type number
Expand Down

0 comments on commit 5f35659

Please sign in to comment.