From 5fd3697843f4d03e4bb65a0346764805aabc2fde Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 17 Feb 2022 12:01:10 -0800 Subject: [PATCH] Fix dimmer level JSON command. --- smart_home/lights.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smart_home/lights.py b/smart_home/lights.py index fd9a091..096e0de 100644 --- a/smart_home/lights.py +++ b/smart_home/lights.py @@ -361,8 +361,7 @@ class TPLinkLight(BaseLight): return False cmd = ( self.get_cmdline() - + '-j \'{{"smartlife.iot.dimmer":{{"set_brightness":{{"brightness":{%d} }} }} }}\'' - % level + + '-j \'{"smartlife.iot.dimmer":{"set_brightness":{"brightness":%d}}}\'' % level ) return tplink.tplink_command(cmd) -- 2.47.1