mindmelting / hass-powerpal

Home Assistant custom integration to fetch data from Powerpal
MIT License
44 stars 11 forks source link

Warning on Home Assistant 2023.2 #16

Closed YodaDaCoda closed 1 year ago

YodaDaCoda commented 1 year ago

Version of the custom_component

0.2.0

Logs

I get this line each time Home Assistant is started:

2023-02-08 15:22:42.707 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.powerpal_live_consumption (<class 'custom_components.powerpal.sensor.PowerpalLiveConsumptionSensor'>) 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 report it to the custom integration author.
mindmelting commented 1 year ago

Thanks! Been a while since I have looked at HA and energy vs power...

Let me review PR this week

Thanks for contributing!

gurrier commented 1 year ago

I get it too.

Logger: homeassistant.components.sensor Source: components/sensor/init.py:497 Integration: Sensor (documentation, issues) First occurred: 10:11:58 AM (1 occurrences) Last logged: 10:11:58 AM

Entity sensor.powerpal_live_consumption (<class 'custom_components.powerpal.sensor.PowerpalLiveConsumptionSensor'>) 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 report it to the custom integration author.

mindmelting commented 1 year ago

Yep will publish an updated version shortly