midea_ac_lan
midea_ac_lan copied to clipboard
Wrong state class for energy sensors
HA core version
2023.10.1
Intergration version
0.3.22
Device type and model
Air Conditioner 00000Q18
Used App
HA
The description of problem
Log reports the following issue:
2023-10-23 20:45:04.881 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.XXXXXXXXX_current_energy_consumption (<class 'custom_components.midea_ac_lan.sensor.MideaSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues
The logs
No response