Fix hive color tunable light (#134628)

This commit is contained in:
epenet 2025-01-04 16:19:38 +01:00 committed by GitHub
parent 0589df7d95
commit 276806d3e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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