From fd12ae2ccd3725e9a70e662d2f1318b7b321c6e0 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Fri, 3 Jan 2025 10:51:20 +0100 Subject: [PATCH] Handle deCONZ color temp 0 is never used when calculating kelvin CT (#134521) --- homeassistant/components/deconz/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/deconz/light.py b/homeassistant/components/deconz/light.py index b1df32efc31..d82c05f14eb 100644 --- a/homeassistant/components/deconz/light.py +++ b/homeassistant/components/deconz/light.py @@ -266,7 +266,7 @@ class DeconzBaseLight[_LightDeviceT: Group | Light]( @property def color_temp_kelvin(self) -> int | None: """Return the CT color value.""" - if self._device.color_temp is None: + if self._device.color_temp is None or self._device.color_temp == 0: return None return color_temperature_mired_to_kelvin(self._device.color_temp)