mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Reset hs color/color temperature when changing the other one (ZHA) (#44566)
This commit is contained in:
@@ -239,6 +239,7 @@ class BaseLight(LogMixin, light.LightEntity):
|
|||||||
self.debug("turned on: %s", t_log)
|
self.debug("turned on: %s", t_log)
|
||||||
return
|
return
|
||||||
self._color_temp = temperature
|
self._color_temp = temperature
|
||||||
|
self._hs_color = None
|
||||||
|
|
||||||
if (
|
if (
|
||||||
light.ATTR_HS_COLOR in kwargs
|
light.ATTR_HS_COLOR in kwargs
|
||||||
@@ -254,6 +255,7 @@ class BaseLight(LogMixin, light.LightEntity):
|
|||||||
self.debug("turned on: %s", t_log)
|
self.debug("turned on: %s", t_log)
|
||||||
return
|
return
|
||||||
self._hs_color = hs_color
|
self._hs_color = hs_color
|
||||||
|
self._color_temp = None
|
||||||
|
|
||||||
if (
|
if (
|
||||||
effect == light.EFFECT_COLORLOOP
|
effect == light.EFFECT_COLORLOOP
|
||||||
|
Reference in New Issue
Block a user