hcoohb / hass-yeelightbt

Home assistant custom component for Yeelight bluetooth
50 stars 16 forks source link

Fix async warning, and updated lightentityfeature and colormode for HA Core 2025.1 #67

Closed kbullet closed 1 week ago

kbullet commented 2 weeks ago

Updated to support LightEntityFeature and color modes https://github.com/hcoohb/hass-yeelightbt/issues/64

2024-11-08 16:45:15.569 WARNING (MainThread) [homeassistant.components.light] Entity light.bedside (<class 'custom_components.yeelight_bt.light.YeelightBT'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 19> and color modes, please create a bug report at https://github.com/hcoohb/hass-yeelightbt/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

2024-11-08 16:45:15.569 WARNING (MainThread) [homeassistant.components.light] light.bedside (<class 'custom_components.yeelight_bt.light.YeelightBT'>) 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/hcoohb/hass-yeelightbt/issues

Also updated async warning and errors https://github.com/hcoohb/hass-yeelightbt/issues/66 for 2025.1

hcoohb commented 2 weeks ago

Thanks for the PR.

I have commented 2 additions that I think we already have in the source code.