From 61deb54ec84b3b732c5e17a6db1aa4f72232a421 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 6 Oct 2022 19:21:57 +0200 Subject: [PATCH] Fix max_color_temp_kelvin (#79738) fix max_color_temp_kelvin --- homeassistant/components/light/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index 866c3338a75..cf018014a2f 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -889,9 +889,9 @@ class LightEntity(ToggleEntity): @property def max_color_temp_kelvin(self) -> int: """Return the coldest color_temp_kelvin that this light supports.""" - if self._attr_min_color_temp_kelvin is None: + if self._attr_max_color_temp_kelvin is None: return color_util.color_temperature_mired_to_kelvin(self.min_mireds) - return self._attr_min_color_temp_kelvin + return self._attr_max_color_temp_kelvin @property def effect_list(self) -> list[str] | None: