Set the the template or statistic that is obtained by the api to a unit of measurement can be used in the energy dashboard.
It should give a unit_of_measurement of volume (gallons by default) What are you seeing?
unit_of_measurement