ESPHome fix changing light color_mode (#93434)
This commit is contained in:
@@ -122,7 +122,7 @@ def _filter_color_modes(
|
||||
|
||||
Excluding all values that don't have the requested features.
|
||||
"""
|
||||
return [mode for mode in supported if mode & features]
|
||||
return [mode for mode in supported if (mode & features) == features]
|
||||
|
||||
|
||||
class EsphomeLight(EsphomeEntity[LightInfo, LightState], LightEntity):
|
||||
|
||||
Reference in New Issue
Block a user