ChristofferG / homeassistant-dmipollen

Home Assistant Custom Component showing pollen data from dmi.dk
6 stars 3 forks source link

Warning about device_state_attributes #2

Closed epe71 closed 2 years ago

epe71 commented 2 years ago

In the Home Assistant log there are some warning about device_state_attributes. Here is one of them:

2021-12-23 18:25:55 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.pollen_viborg_birk (<class 'custom_components.dmipollen.sensor.DMIPollenSensor'>) implements device_state_attributes. Please report it to the custom component author.

If you rename the method from device_state_attributes to extra_state_attributes the problem is fixed, it is a simple as that. :-)

ChristofferG commented 2 years ago

Hi epe71. Thanks for the notice 👍 I will take a look at it between Christmas and New Year.

ChristofferG commented 2 years ago

This issue is solved in v2022.1.0