mitch-dc / volkswagen_we_connect_id

Apache License 2.0
195 stars 51 forks source link

VolkswagenIDVehicleSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None #263

Open StefanoGiu opened 2 months ago

StefanoGiu commented 2 months ago

Version of the custom_component

1.0

Installation method (hacs / manual)

hacs

Installation method of hass (venv, docker, hassio,...)

venv

Configuration


Add your configuration here.

Describe the bug

Warning in the log

Debug log


2024-06-26 09:35:11.319 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.golf_last_trip_average_electric_consumption (<class 'custom_components.volkswagen_we_connect_id.sensor.VolkswagenIDVehicleSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'volkswagen_we_connect_id' custom integration
PerDeg commented 1 month ago

I have the same issue and gets no data from the car because of it.

I guess a fix similar to https://github.com/home-assistant/core/pull/87274 is needed? Should be more ppl having the same problem? Let me know if i can provide any information that may help, if needed.

ColinRobbins commented 1 month ago

Duplicate of https://github.com/mitch-dc/volkswagen_we_connect_id/issues/233 ?