Fix Home Connect ambient color (#45038)

This commit is contained in:
Sjack-Sch
2021-01-15 19:40:29 +01:00
committed by GitHub
parent 74c81b7c01
commit 7ce897f373

View File

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