mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Fix Home Connect ambient color (#45038)
This commit is contained in:
@@ -104,7 +104,7 @@ class HomeConnectLight(HomeConnectEntity, LightEntity):
|
||||
if ATTR_BRIGHTNESS in kwargs:
|
||||
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:
|
||||
rgb = color_util.color_hsv_to_RGB(*hs_color, brightness)
|
||||
|
Reference in New Issue
Block a user