Danielhiversen / home_assistant_tibber_data

Display Tibber data sensors.
MIT License
42 stars 13 forks source link

class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using wrong state class 'measurement' #76

Closed Vitus-TL closed 1 year ago

Vitus-TL commented 1 year ago

Home Assistant 2023.10.5 Supervisor 2023.10.0 Operating System 11.0

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.average_of_3_highest_hourly_consumption_xxxxxx (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing';

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.yearly_cost_xxxxxx (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible consider ing device class ('monetary') it is using; expected None or one of 'total';

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.monthly_consump tion_compared_to_last_year_xxxxxx (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement ' which is impossible considering device class ('energy') it is using; expected None or one of 'total',

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.monthly_production_profit_xxxxxx (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total';

Danielhiversen commented 1 year ago

Duplicate of https://github.com/Danielhiversen/home_assistant_tibber_data/issues/61