mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
show dashboard nodes when there is data
This commit is contained in:
@@ -355,6 +355,7 @@ void WebDataService::dashboard_data(AsyncWebServerRequest * request) {
|
||||
JsonArray root = response->getRoot();
|
||||
#endif
|
||||
|
||||
// first do all the recognized devices
|
||||
for (const auto & emsdevice : EMSESP::emsdevices) {
|
||||
if (emsdevice->count_entities_fav()) {
|
||||
JsonObject obj = root.add<JsonObject>();
|
||||
|
||||
Reference in New Issue
Block a user