I used the hp_ilo integration to get the current power reading of my server. Since I want to track its power usage, I created a helper using the “Integration - Riemann sum integral sensor”, as described here.
If I add the helper to my energy dashboard I get get following message:
If I go to Dev Tools → States → sensor.server_power_consumption - > add device_class: energy to the yaml config, the error message disappears, but reappears after restarting home assistant.
Can I ignore the message and HA will still track the usage anyway or how can I make the helper stick with device_class: energy
I just solved this myself by adding this to configuration.yaml and restarted Home Assistant. After that I could import the sensor in to Individual devices in Energy configuration. Running version HA 2024.3.0