mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Set default min/max color temperature in demo lights (#133330)
This commit is contained in:
parent
909eb045cc
commit
5f2b1bd622
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user