JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
947 stars 80 forks source link

Implement color mode (compatibility enhancement) #548

Closed ldotlopez closed 2 months ago

ldotlopez commented 2 months ago

Reference: https://developers.home-assistant.io/docs/core/entity/light#color-modes

New integrations must implement both color_mode and supported_color_modes. If an integration is upgraded to support color mode, both color_mode and supported_color_modes should be implemented.

This also fixes this warning at startup:

WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.tapo_control.light.TapoWhitelight'>) 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/JurajNyiri/HomeAssistant-Tapo-Control/issues
JurajNyiri commented 2 months ago

Thank you!!