From 5f2b1bd62282d0d55d1ad1e2c8ed00de30bacb15 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:45:59 +0100 Subject: [PATCH] Set default min/max color temperature in demo lights (#133330) --- homeassistant/components/demo/light.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/demo/light.py b/homeassistant/components/demo/light.py index 8bb4e403c3d..ec98a056b3e 100644 --- a/homeassistant/components/demo/light.py +++ b/homeassistant/components/demo/light.py @@ -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,