mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Fix hive color tunable light (#134628)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user