Set default min/max color temperature in deconz lights (#133333)

This commit is contained in:
epenet 2024-12-16 09:49:18 +01:00 committed by GitHub
parent 06f6869da5
commit f2674f3262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,8 @@ from homeassistant.components.light import (
ATTR_HS_COLOR,
ATTR_TRANSITION,
ATTR_XY_COLOR,
DEFAULT_MAX_KELVIN,
DEFAULT_MIN_KELVIN,
DOMAIN as LIGHT_DOMAIN,
EFFECT_COLORLOOP,
FLASH_LONG,
@ -191,6 +193,8 @@ class DeconzBaseLight[_LightDeviceT: Group | Light](
TYPE = LIGHT_DOMAIN
_attr_color_mode = ColorMode.UNKNOWN
_attr_min_color_temp_kelvin = DEFAULT_MIN_KELVIN
_attr_max_color_temp_kelvin = DEFAULT_MAX_KELVIN
def __init__(self, device: _LightDeviceT, hub: DeconzHub) -> None:
"""Set up light."""