We present a thermodynamic model of heat conductor which allows for different temperatures of phonons and electrons. This model is applied to calculate the steady-state radial temperature profile in a circular thin layer. The compatibility of the obtained temperature profiles with the second law of thermodynamics is investigated in view of the requirement of positive entropy production and of a nonlocal constitutive equation for the entropy flux.