mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +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_RGBW_COLOR,
|
||||||
ATTR_RGBWW_COLOR,
|
ATTR_RGBWW_COLOR,
|
||||||
ATTR_WHITE,
|
ATTR_WHITE,
|
||||||
|
DEFAULT_MAX_KELVIN,
|
||||||
|
DEFAULT_MIN_KELVIN,
|
||||||
ColorMode,
|
ColorMode,
|
||||||
LightEntity,
|
LightEntity,
|
||||||
LightEntityFeature,
|
LightEntityFeature,
|
||||||
@ -100,6 +102,9 @@ class DemoLight(LightEntity):
|
|||||||
_attr_name = None
|
_attr_name = None
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
|
|
||||||
|
_attr_max_color_temp_kelvin = DEFAULT_MAX_KELVIN
|
||||||
|
_attr_min_color_temp_kelvin = DEFAULT_MIN_KELVIN
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
unique_id: str,
|
unique_id: str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user