koying / openrgb_ha

OpenRGB integration for Home Assistant
110 stars 18 forks source link

Still using deprecated supported features values. Use LightEntityFeature.EFFECT|17: 21 and color modes #37

Open bmos opened 9 months ago

bmos commented 9 months ago

Logger: homeassistant.components.light Source: components/light/init.py:1242 Integration: Light (documentation, issues) First occurred: 9:33:19 AM (3 occurrences) Last logged: 9:33:19 AM

Entity None (<class 'custom_components.openrgb.light.OpenRGBDevice'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature.EFFECT|17: 21> and color modes, please create a bug report at https://github.com/koying/openrgb_ha/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

I looked into this and it appears the new method was released in December by https://github.com/home-assistant/core/commit/e4a25825d3b0a2b44f1bb57b87a95e25587a9e6f

Chaoschaot232 commented 8 months ago

Got the same warning within my Instance. It would be nice to get an update here, thanks :)

amaisano commented 7 months ago

Related to this?

Apr 02 23:25:05 homeassistant homeassistant[566]: 2024-04-02 19:25:05.219 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.openrgb.light.OpenRGBDevice'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/koying/openrgb_ha/issues