gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
118 stars 45 forks source link

For compatibility with energy dashboard change water consumption sensors device class to WATER #115

Closed stefkuhb closed 5 months ago

stefkuhb commented 6 months ago

Currently in sensor.py the three water consumption sensors have the device class VOLUME, this is not compatible with the energy dashboard, please change it to WATER for the following classes:

HonBaseMeanWaterConsumption HonBaseTotalWaterUsed HonBaseCurrentWaterUsed

self._attr_device_class = SensorDeviceClass.VOLUME should be self._attr_device_class = SensorDeviceClass.WATER

gvigroux commented 5 months ago

Thanks for this. I've made the 0.6.8 with this fix.