skagmo / ha_vwid

Volkswagen ID component for Home Assistant
72 stars 25 forks source link

Entity implements device_state_attributes #22

Closed BugBasher28 closed 2 years ago

BugBasher28 commented 2 years ago

Logger: homeassistant.helpers.entity Source: helpers/entity.py:580 First occurred: 15:31:42 (1 occurrences) Last logged: 15:31:42

Entity sensor.mycar_soc (<class 'custom_components.vwid.sensor.VwidSensor'>) implements device_state_attributes. Please report it to the custom component author.


I have no idea what this means but it's in my logs. And now I have reported it.

jcsogo commented 2 years ago

This means that the integration should use the extra_state_attributes instead of device_state_attributes which has been deprecated.

https://developers.home-assistant.io/docs/core/entity/?_highlight=extra_state_attributes#generic-properties

skagmo commented 2 years ago

Thanks for giving me a heads up about this. Apparently device_state_attributes stopped working in 2022.4. Fixed in commit a039e92.