command NOT_FOUND when not found

This commit is contained in:
proddy
2025-03-03 15:13:04 +01:00
parent 03fa92352b
commit d712b1cce9

View File

@@ -387,7 +387,7 @@ uint8_t Command::call(const uint8_t device_type, const char * command, const cha
output["message"] = err;
LOG_WARNING("Command failed: %s", err.c_str());
}
return CommandRet::ERROR;
return CommandRet::NOT_FOUND;
}
// before calling the command, check permissions and abort if not authorized