From bb39b99a3f3d6964f1320934eb080388a7ebf79c Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 24 May 2023 18:37:42 +1200 Subject: [PATCH] ESPHome fix changing light color_mode (#93434) --- homeassistant/components/esphome/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/esphome/light.py b/homeassistant/components/esphome/light.py index 880d94a5f55..5e16f2476bb 100644 --- a/homeassistant/components/esphome/light.py +++ b/homeassistant/components/esphome/light.py @@ -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):