mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix Home Connect ambient color (#45038)
This commit is contained in:
parent
74c81b7c01
commit
7ce897f373
@ -104,7 +104,7 @@ class HomeConnectLight(HomeConnectEntity, LightEntity):
|
|||||||
if ATTR_BRIGHTNESS in kwargs:
|
if ATTR_BRIGHTNESS in kwargs:
|
||||||
brightness = 10 + ceil(kwargs[ATTR_BRIGHTNESS] / 255 * 90)
|
brightness = 10 + ceil(kwargs[ATTR_BRIGHTNESS] / 255 * 90)
|
||||||
|
|
||||||
hs_color = kwargs.get(ATTR_HS_COLOR, default=self._hs_color)
|
hs_color = kwargs.get(ATTR_HS_COLOR, self._hs_color)
|
||||||
|
|
||||||
if hs_color is not None:
|
if hs_color is not None:
|
||||||
rgb = color_util.color_hsv_to_RGB(*hs_color, brightness)
|
rgb = color_util.color_hsv_to_RGB(*hs_color, brightness)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user