bosch-thermostat / home-assistant-bosch-custom-component

HA custom component for Bosch thermostats
Apache License 2.0
206 stars 43 forks source link

Entity sensor.ecus_avg_outdoor_temperature is using state class 'total' which is impossible #333

Closed ngosang closed 8 months ago

ngosang commented 9 months ago

Describe the bug I see this message in Home Assistant:

3-10-11 14:08:42.271 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ecus_avg_outdoor_temperature (<class 'custom_components.bosch.sensor.energy.EnergySensor'>) is using state class 'total' which is impossible considering device class ('temperature') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/issues

To Reproduce Steps to reproduce the behavior:

  1. Configure Junkers CT100 with NEFIT (other metrics are working fine from here)

Expected behavior No warning log

Version

pszafer commented 8 months ago

Fixed in https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/commit/e5967066caa58622bb0ccf13c4795bde1503ea63

ngosang commented 7 months ago

@pszafer could you publish a release with the latest commits?