1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

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
+1 -1
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):