projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1220ffc
)
Fix dimmer level JSON command.
author
Scott Gasch
<
[email protected]
>
Thu, 17 Feb 2022 20:01:10 +0000
(12:01 -0800)
committer
Scott Gasch
<
[email protected]
>
Thu, 17 Feb 2022 20:01:10 +0000
(12:01 -0800)
smart_home/lights.py
patch
|
blob
|
history
diff --git
a/smart_home/lights.py
b/smart_home/lights.py
index fd9a091cb0b8be8b0669857b8c274bd54e89eb5d..096e0de6b6812fc2c8f17110e96f227b8d5fe649 100644
(file)
--- 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)