Set default min/max color temperature in demo lights (#133330)

This commit is contained in:
epenet 2024-12-16 08:45:59 +01:00 committed by GitHub
parent 909eb045cc
commit 5f2b1bd622
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,8 @@ from homeassistant.components.light import (
ATTR_RGBW_COLOR,
ATTR_RGBWW_COLOR,
ATTR_WHITE,
DEFAULT_MAX_KELVIN,
DEFAULT_MIN_KELVIN,
ColorMode,
LightEntity,
LightEntityFeature,
@ -100,6 +102,9 @@ class DemoLight(LightEntity):
_attr_name = None
_attr_should_poll = False
_attr_max_color_temp_kelvin = DEFAULT_MAX_KELVIN
_attr_min_color_temp_kelvin = DEFAULT_MIN_KELVIN
def __init__(
self,
unique_id: str,