mitch-dc / volkswagen_we_connect_id

Apache License 2.0
202 stars 53 forks source link

Sensor electra_last_trip_average_electric_consumption is using state class 'measurement' which is impossible... #277

Open ColinRobbins opened 1 month ago

ColinRobbins commented 1 month ago

Version of the custom_component

v0.2.3

Installation method (hacs / manual)

HACS

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

hassio

Configuration

N/A

Describe the bug

Generates the following error message in the log file on startup.

Debug log

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:569
integration: Sensor (documentation, issues)
First occurred: 08:37:06 (1 occurrences)
Last logged: 08:37:06

Entity sensor.electra_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_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'volkswagen_we_connect_id' custom integration