"no entries" is valid command execution

This commit is contained in:
MichaelDvP
2023-09-19 14:22:38 +02:00
parent 42a4c792ad
commit 8b136ddefe
4 changed files with 7 additions and 8 deletions

View File

@@ -391,7 +391,7 @@ bool TemperatureSensor::command_info(const char * value, const int8_t id, JsonOb
bool TemperatureSensor::get_value_info(JsonObject & output, const char * cmd, const int8_t id) {
if (sensors_.empty()) {
output["message"] = "no entries";
return false;
return true;
}
// make a copy of the string command for parsing
char command_s[30];