diff --git a/homeassistant/components/tplink/light.py b/homeassistant/components/tplink/light.py index 8e77c68a880..c4ec80347d5 100644 --- a/homeassistant/components/tplink/light.py +++ b/homeassistant/components/tplink/light.py @@ -185,6 +185,9 @@ class TPLinkSmartBulb(CoordinatedTPLinkEntity, LightEntity): modes: set[ColorMode] = set() if device.is_variable_color_temp: modes.add(ColorMode.COLOR_TEMP) + temp_range = device.valid_temperature_range + self._attr_min_color_temp_kelvin = temp_range.min + self._attr_max_color_temp_kelvin = temp_range.max if device.is_color: modes.add(ColorMode.HS) if device.is_dimmable: @@ -251,16 +254,6 @@ class TPLinkSmartBulb(CoordinatedTPLinkEntity, LightEntity): transition = int(transition * 1_000) await self.device.turn_off(transition=transition) - @property - def min_color_temp_kelvin(self) -> int: - """Return minimum supported color temperature.""" - return cast(int, self.device.valid_temperature_range.min) - - @property - def max_color_temp_kelvin(self) -> int: - """Return maximum supported color temperature.""" - return cast(int, self.device.valid_temperature_range.max) - @property def color_temp_kelvin(self) -> int: """Return the color temperature of this light."""