Enable setting brightness with color temp for smart devices (#1091)

This commit is contained in:
Steven B.
2024-07-31 15:52:27 +01:00
committed by GitHub
parent 7bba9926ed
commit cb7e904d30
5 changed files with 62 additions and 15 deletions

View File

@@ -429,7 +429,7 @@ class IotBulb(IotDevice):
if not self._is_variable_color_temp:
raise KasaException("Bulb does not support colortemp.")
valid_temperature_range = self.valid_temperature_range
valid_temperature_range = self._valid_temperature_range
if temp < valid_temperature_range[0] or temp > valid_temperature_range[1]:
raise ValueError(
"Temperature should be between {} and {}, was {}".format(