mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Handle deCONZ color temp 0 is never used when calculating kelvin CT (#134521)
This commit is contained in:
@@ -266,7 +266,7 @@ class DeconzBaseLight[_LightDeviceT: Group | Light](
|
|||||||
@property
|
@property
|
||||||
def color_temp_kelvin(self) -> int | None:
|
def color_temp_kelvin(self) -> int | None:
|
||||||
"""Return the CT color value."""
|
"""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 None
|
||||||
return color_temperature_mired_to_kelvin(self._device.color_temp)
|
return color_temperature_mired_to_kelvin(self._device.color_temp)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user