ESPHome fix changing light color_mode (#93434)

This commit is contained in:
Jesse Hills 2023-05-24 18:37:42 +12:00 committed by GitHub
parent 67515f8ac3
commit bb39b99a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):