Set default min/max color temperature in matter lights (#133340)

This commit is contained in:
epenet 2024-12-16 10:32:57 +01:00 committed by GitHub
parent d78a24ba33
commit 9667a12030
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_HS_COLOR,
ATTR_TRANSITION,
ATTR_XY_COLOR,
DEFAULT_MAX_KELVIN,
DEFAULT_MIN_KELVIN,
ColorMode,
LightEntity,
LightEntityDescription,
@ -91,6 +93,8 @@ class MatterLight(MatterEntity, LightEntity):
_supports_color_temperature = False
_transitions_disabled = False
_platform_translation_key = "light"
_attr_min_color_temp_kelvin = DEFAULT_MIN_KELVIN
_attr_max_color_temp_kelvin = DEFAULT_MAX_KELVIN
async def _set_xy_color(
self, xy_color: tuple[float, float], transition: float = 0.0