donot fetch system_info for reset command

This commit is contained in:
MichaelDvP
2026-07-12 09:46:18 +02:00
parent 7ab343a216
commit 9c905c8bab

View File

@@ -1952,7 +1952,9 @@ bool System::get_value_info(JsonObject output, const char * cmd) {
LOG_ERROR("empty system command");
return false;
}
if (!strcmp(cmd, "reset")) { // reset is a command, not an entity
return false;
}
// check for hardcoded "info"/"value"
if (!strcmp(cmd, F_(info)) || !strcmp(cmd, F_(values))) {
return command_info("", 0, output);