summaryrefslogtreecommitdiff
path: root/smart_home
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-17 12:01:10 -0800
committerScott Gasch <[email protected]>2022-02-17 12:01:10 -0800
commit5fd3697843f4d03e4bb65a0346764805aabc2fde (patch)
tree00982d57b87e95772caa42fe9278dafee7d2046c /smart_home
parent1220ffcf56e968de31b62f6d0c5af250fed9028e (diff)
Fix dimmer level JSON command.
Diffstat (limited to 'smart_home')
-rw-r--r--smart_home/lights.py3
1 files changed, 1 insertions, 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)