mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix hive color tunable light (#134628)
This commit is contained in:
parent
0589df7d95
commit
276806d3e1
@ -114,6 +114,7 @@ class HiveDeviceLight(HiveEntity, LightEntity):
|
|||||||
self._attr_hs_color = color_util.color_RGB_to_hs(*rgb)
|
self._attr_hs_color = color_util.color_RGB_to_hs(*rgb)
|
||||||
self._attr_color_mode = ColorMode.HS
|
self._attr_color_mode = ColorMode.HS
|
||||||
else:
|
else:
|
||||||
|
color_temp = self.device["status"].get("color_temp")
|
||||||
self._attr_color_temp_kelvin = (
|
self._attr_color_temp_kelvin = (
|
||||||
None
|
None
|
||||||
if color_temp is None
|
if color_temp is None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user