mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Set default min/max color temperature in wemo lights (#133338)
This commit is contained in:
parent
3129151ea9
commit
22d03afb9b
@ -11,6 +11,8 @@ from homeassistant.components.light import (
|
|||||||
ATTR_COLOR_TEMP_KELVIN,
|
ATTR_COLOR_TEMP_KELVIN,
|
||||||
ATTR_HS_COLOR,
|
ATTR_HS_COLOR,
|
||||||
ATTR_TRANSITION,
|
ATTR_TRANSITION,
|
||||||
|
DEFAULT_MAX_KELVIN,
|
||||||
|
DEFAULT_MIN_KELVIN,
|
||||||
ColorMode,
|
ColorMode,
|
||||||
LightEntity,
|
LightEntity,
|
||||||
LightEntityFeature,
|
LightEntityFeature,
|
||||||
@ -77,6 +79,8 @@ def async_setup_bridge(
|
|||||||
class WemoLight(WemoEntity, LightEntity):
|
class WemoLight(WemoEntity, LightEntity):
|
||||||
"""Representation of a WeMo light."""
|
"""Representation of a WeMo light."""
|
||||||
|
|
||||||
|
_attr_max_color_temp_kelvin = DEFAULT_MAX_KELVIN
|
||||||
|
_attr_min_color_temp_kelvin = DEFAULT_MIN_KELVIN
|
||||||
_attr_supported_features = LightEntityFeature.TRANSITION
|
_attr_supported_features = LightEntityFeature.TRANSITION
|
||||||
|
|
||||||
def __init__(self, coordinator: DeviceCoordinator, light: BridgeLight) -> None:
|
def __init__(self, coordinator: DeviceCoordinator, light: BridgeLight) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user