mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix yeelight_sunflower hs_color using RGB values (#36470)
This commit is contained in:
parent
f8e48a9230
commit
a4204b440c
@ -44,7 +44,7 @@ class SunflowerBulb(LightEntity):
|
|||||||
self._available = light.available
|
self._available = light.available
|
||||||
self._brightness = light.brightness
|
self._brightness = light.brightness
|
||||||
self._is_on = light.is_on
|
self._is_on = light.is_on
|
||||||
self._hs_color = light.rgb_color
|
self._rgb_color = light.rgb_color
|
||||||
self._unique_id = light.zid
|
self._unique_id = light.zid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -75,7 +75,7 @@ class SunflowerBulb(LightEntity):
|
|||||||
@property
|
@property
|
||||||
def hs_color(self):
|
def hs_color(self):
|
||||||
"""Return the color property."""
|
"""Return the color property."""
|
||||||
return self._hs_color
|
return color_util.color_RGB_to_hs(*self._rgb_color)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supported_features(self):
|
def supported_features(self):
|
||||||
@ -109,4 +109,4 @@ class SunflowerBulb(LightEntity):
|
|||||||
self._available = self._light.available
|
self._available = self._light.available
|
||||||
self._brightness = self._light.brightness
|
self._brightness = self._light.brightness
|
||||||
self._is_on = self._light.is_on
|
self._is_on = self._light.is_on
|
||||||
self._hs_color = color_util.color_RGB_to_hs(*self._light.rgb_color)
|
self._rgb_color = self._light.rgb_color
|
||||||
|
Loading…
x
Reference in New Issue
Block a user