Skip to content

[BUG]: wrong state class being used for _energy_used_average and _energy_used_total? #62

@sammyke007

Description

@sammyke007

Describe the bug.

The following error pops up in the HA log:

Entity sensor.st3_pinion_sammy_energy_used_average (<class 'custom_components.stromer.sensor.StromerSensor'>) 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 create a bug report at https://github.com/CoMPaTech/stromer/issues
Entity sensor.st3_pinion_sammy_energy_used_total (<class 'custom_components.stromer.sensor.StromerSensor'>) 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 create a bug report at https://github.com/CoMPaTech/stromer/issues

What version of Home Assistant Core has the issue?

2023.12.0

What was the last working version of Home Assistant Core?

2023.12.0

What type of installation are you running?

Home Assistant OS

How did you install the stromer integration

HACS

Logging

No response

Diagnostics information

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions