plamish / xcomfort

Eaton xComfort SHC integration for Home Assistant
18 stars 6 forks source link

Warning device_state_attributes after update to 2021.12 #10

Closed gulli1986 closed 2 years ago

gulli1986 commented 2 years ago

Getting the following warning after update to 2021.12:

2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.kjokken_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.1_etasje_gang_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.2_etasje_trapp_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_terrasse_bak (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_1_etasje_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_2_etasje_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_hybel_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.

It looks like it is just a name change from "device_state_attributes" to "extra_state_attributes" name change. Anyone knows how to fix this? Is it just to replace all "device_state_attributes" by "extra_state_attributes" in all files?

plamish commented 2 years ago

Thanks for heads up. It was simple fix and the code is updated

gulli1986 commented 2 years ago

Thanks a lot! Closing the issue as this is now resolved.