diff --git a/kasa/cli.py b/kasa/cli.py index 0473dc97..f9f17bce 100755 --- a/kasa/cli.py +++ b/kasa/cli.py @@ -345,6 +345,9 @@ async def brightness(dev: SmartBulb, brightness: int, transition: int): async def temperature(dev: SmartBulb, temperature: int, transition: int): """Get or set color temperature.""" await dev.update() + if not dev.is_variable_color_temp: + click.echo("Device does not support color temperature") + return if temperature is None: click.echo(f"Color temperature: {dev.color_temp}") valid_temperature_range = dev.valid_temperature_range