From 9327938dcc1928d9e1d017b9d0cc2b520ba19ba0 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 2 Apr 2022 09:14:56 +0200 Subject: [PATCH] Allow lowercase none for effect value in Hue lights (#69111) --- homeassistant/components/hue/v2/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hue/v2/light.py b/homeassistant/components/hue/v2/light.py index 5b6bb4ed82c5..af3dfa80ffc0 100644 --- a/homeassistant/components/hue/v2/light.py +++ b/homeassistant/components/hue/v2/light.py @@ -194,7 +194,7 @@ class HueLight(HueBaseEntity, LightEntity): brightness = normalize_hue_brightness(kwargs.get(ATTR_BRIGHTNESS)) flash = kwargs.get(ATTR_FLASH) effect = effect_str = kwargs.get(ATTR_EFFECT) - if effect_str == EFFECT_NONE: + if effect_str in (EFFECT_NONE, EFFECT_NONE.lower()): effect = EffectStatus.NO_EFFECT elif effect_str is not None: # work out if we got a regular effect or timed effect