Thermal Properties of the Inhomogeneous Electron Gas