From: Scott Gasch Date: Thu, 17 Feb 2022 20:01:10 +0000 (-0800) Subject: Fix dimmer level JSON command. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=5fd3697843f4d03e4bb65a0346764805aabc2fde;p=python_utils.git Fix dimmer level JSON command. --- 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)