tetienne / veolia-custom-component

Home Assistant custom component to retrieve information from Veolia
MIT License
9 stars 10 forks source link

Update entity.py #33

Closed ALaDoffe closed 2 years ago

ALaDoffe commented 2 years ago

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

As from version HA 2021.12 device_state_attributes is deprecated and should be replaced by extra_state_attributes.