mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Handle deCONZ color temp 0 is never used when calculating kelvin CT (#134521)
This commit is contained in:
parent
e15eda3aa2
commit
fd12ae2ccd
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user