mitch-dc / volkswagen_we_connect_id

Apache License 2.0
202 stars 53 forks source link

0.2.2: average_electric_consumption classes wrong #253

Open northalpha opened 8 months ago

northalpha commented 8 months ago

Version of the custom_component

0.2.2

Installation method (hacs / manual)

HACS

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

HASSIO

Configuration

...

Describe the bug

average_electric_consumption is using a combination of statce_class and device_class with are not possible.

Debug log


Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:576
Integration: Sensor (documentation, issues)
First occurred: 09:49:52 (1 occurrences)
Last logged: 09:49:52

Entity sensor.id_3_pro_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