Fix color mode in hive light (#110330)

This commit is contained in:
Erik Montnemery
2024-02-12 10:21:43 +01:00
committed by GitHub
parent 4f277b9509
commit 9c9fa11654

View File

@@ -54,6 +54,7 @@ class HiveDeviceLight(HiveEntity, LightEntity):
self._attr_color_mode = ColorMode.COLOR_TEMP
elif self.device["hiveType"] == "colourtuneablelight":
self._attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
self._attr_color_mode = ColorMode.UNKNOWN
self._attr_min_mireds = 153
self._attr_max_mireds = 370