mirror of
https://github.com/home-assistant/core.git
synced 2025-06-03 20:57:08 +00:00
Fix ZHA color mode not being set correctly when changing light state (#74018)
This commit is contained in:
parent
f3a24d5a45
commit
ed7ea1423a
@ -262,6 +262,7 @@ class BaseLight(LogMixin, light.LightEntity):
|
||||
if isinstance(result, Exception) or result[1] is not Status.SUCCESS:
|
||||
self.debug("turned on: %s", t_log)
|
||||
return
|
||||
self._color_mode = ColorMode.COLOR_TEMP
|
||||
self._color_temp = temperature
|
||||
self._hs_color = None
|
||||
|
||||
@ -275,6 +276,7 @@ class BaseLight(LogMixin, light.LightEntity):
|
||||
if isinstance(result, Exception) or result[1] is not Status.SUCCESS:
|
||||
self.debug("turned on: %s", t_log)
|
||||
return
|
||||
self._color_mode = ColorMode.HS
|
||||
self._hs_color = hs_color
|
||||
self._color_temp = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user