Reset hs color/color temperature when changing the other one (ZHA) (#44566)

This commit is contained in:
TheJulianJES
2020-12-28 20:05:15 +01:00
committed by GitHub
parent 392c058d34
commit 0bc04a6501

View File

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