Enthalpy is a derived working medium state parameter, which is defined as follows: The sum of the flowing potential energy and the internal energy of the working medium is called working medium enthalpy, which represents the total energy per unit mass of working medium in a certain state.
H=U+PV, for ideal gas, u is only related to temperature, for ideal gas, PV=NRT, so H=U(T)+NRT. It is not difficult to see that the enthalpy change of an ideal gas is only related to temperature.