From 0bc04a650113f96e570b02059afab988fb2fcc84 Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Mon, 28 Dec 2020 20:05:15 +0100 Subject: [PATCH] Reset hs color/color temperature when changing the other one (ZHA) (#44566) --- homeassistant/components/zha/light.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index 6b3a39d0926..4a25fa3c988 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -239,6 +239,7 @@ class BaseLight(LogMixin, light.LightEntity): self.debug("turned on: %s", t_log) return self._color_temp = temperature + self._hs_color = None if ( light.ATTR_HS_COLOR in kwargs @@ -254,6 +255,7 @@ class BaseLight(LogMixin, light.LightEntity): self.debug("turned on: %s", t_log) return self._hs_color = hs_color + self._color_temp = None if ( effect == light.EFFECT_COLORLOOP