cleanup, adapt comments, packages

This commit is contained in:
MichaelDvP
2023-09-20 17:56:39 +02:00
parent 5c484d58dc
commit dcdd8d9e44
6 changed files with 9 additions and 15 deletions

View File

@@ -247,10 +247,9 @@ bool WebCustomEntityService::get_value_info(JsonObject & output, const char * cm
}
return true;
}
// if no entries, return a message instead of an error
// if no entries, return empty json
// https://github.com/emsesp/EMS-ESP32/issues/1297
if (customEntityItems->size() == 0) {
// output["message"] = "no entries";
return true;
}
if (strlen(cmd) == 0 || Helpers::toLower(cmd) == F_(values) || Helpers::toLower(cmd) == F_(info)) {