mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add support for KS205 and KS225 wall switches (#594)
* KS205 Fixture * KS225 Fixture * Added Smart.KasaSwitch device type * Added KS225 to test * Added variable color temp check * Added supported devices to readme * Removed parenthesis * Updated fixtures * Fixed for ruff
This commit is contained in:
@@ -41,6 +41,9 @@ class TapoBulb(TapoDevice, SmartBulb):
|
||||
|
||||
:return: White temperature range in Kelvin (minimum, maximum)
|
||||
"""
|
||||
if not self.is_variable_color_temp:
|
||||
raise SmartDeviceException("Color temperature not supported")
|
||||
|
||||
ct_range = self._info.get("color_temp_range", [0, 0])
|
||||
return ColorTempRange(min=ct_range[0], max=ct_range[1])
|
||||
|
||||
|
Reference in New Issue
Block a user