Fix hive color tunable light (#134628)

This commit is contained in:
epenet
2025-01-04 16:19:38 +01:00
committed by Franck Nijhof
parent 0bd7b793fe
commit 017679abe1
+1
View File
@@ -114,6 +114,7 @@ class HiveDeviceLight(HiveEntity, LightEntity):
self._attr_hs_color = color_util.color_RGB_to_hs(*rgb)
self._attr_color_mode = ColorMode.HS
else:
color_temp = self.device["status"].get("color_temp")
self._attr_color_temp_kelvin = (
None
if color_temp is None