muniter / halinuxcompanion

HomeAssistant Linux Companion
MIT License
54 stars 6 forks source link

[BUG] Wrong state class for uptime sensor #23

Closed slovdahl closed 9 months ago

slovdahl commented 9 months ago

Describe the bug

I got this in the Home Assistant log after starting to use this great companion app:

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:576
Integration: Sensor (documentation, issues)
First occurred: 20:14:41 (2 occurrences)
Last logged: 20:21:53

Entity sensor.desktop_computer_uptime (<class 'homeassistant.components.mobile_app.sensor.MobileAppSensor'>) is using state class 'measurement' which is impossible considering device class ('timestamp') it is using; expected None; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mobile_app%22

To Reproduce

Steps to reproduce the behavior:

  1. Start HA Linux companion
  2. Use Home Assistant 2024.2

Expected behavior

No warnings logged.

Application Logs

Nothing in particular.