From 9cb2a5640528d9223813caee6e21ac0e42f443c2 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Fri, 11 Nov 2022 21:06:54 +0100 Subject: [PATCH] Add a note that transition is not supported by all devices (#398) --- kasa/smartbulb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kasa/smartbulb.py b/kasa/smartbulb.py index b29c82f1..af79d7de 100644 --- a/kasa/smartbulb.py +++ b/kasa/smartbulb.py @@ -163,7 +163,8 @@ class SmartBulb(SmartDevice): HSV(hue=180, saturation=100, value=80) If you don't want to use the default transitions, you can pass `transition` in milliseconds. - This applies to all transitions (:func:`turn_on`, :func:`turn_off`, :func:`set_hsv`, :func:`set_color_temp`, :func:`set_brightness`). + This applies to all transitions (:func:`turn_on`, :func:`turn_off`, :func:`set_hsv`, :func:`set_color_temp`, :func:`set_brightness`) if supported by the device. + Light strips (e.g., KL420L5) do not support this feature, but silently ignore the parameter. The following changes the brightness over a period of 10 seconds: >>> asyncio.run(bulb.set_brightness(100, transition=10_000))