ESPHome fix changing light color_mode (#93434)
This commit is contained in:
parent
67515f8ac3
commit
bb39b99a3f
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue