ahoernecke / ha_cellar_tracker

17 stars 17 forks source link

Deprecated function device_state_attributes is spamming logs since 2021.12 #11

Closed heikkih closed 2 years ago

heikkih commented 2 years ago

For every cellartracker-sensor (I have a lot), I constantly get the following in my logs with HASS > 2021.12.

WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.cellar_tracker_varietal_barbera (<class 'custom_components.cellar_tracker.sensor.WineCellarSensor'>) implements device_state_attributes. Please report it to the custom component author.

PR#10 is added to replace this deprecated function with extra_state_attributes.

fdicarlo commented 2 years ago

As this issue is solved by PR #10 I suggest to close this one as well

heikkih commented 2 years ago

Thanks for the merge :)