summaryrefslogtreecommitdiff
path: root/smart_home/lights.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-26 22:41:58 -0800
committerScott Gasch <[email protected]>2022-02-26 22:41:58 -0800
commit7dd95b88a2a1a977506300f337e4b50a2df13141 (patch)
treec9fdbb920e1fb94fadd253aef5601d4b40c8c367 /smart_home/lights.py
parent4863b00af3b2ddcfaa2e5f47fd6dd7e95c1eb6c5 (diff)
Rename a method, cleanup lint errors.
Diffstat (limited to 'smart_home/lights.py')
-rw-r--r--smart_home/lights.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/smart_home/lights.py b/smart_home/lights.py
index 9a5a231..2a0b1cd 100644
--- a/smart_home/lights.py
+++ b/smart_home/lights.py
@@ -283,7 +283,7 @@ class TPLinkLight(BaseLight):
if extra_args is not None:
cmd += f" {extra_args}"
logger.debug('About to execute: %s', cmd)
- return tplink.tplink_command(cmd)
+ return tplink.tplink_command_wrapper(cmd)
@overrides
def turn_on(self) -> bool:
@@ -365,7 +365,7 @@ class TPLinkLight(BaseLight):
self.get_cmdline()
+ '-j \'{"smartlife.iot.dimmer":{"set_brightness":{"brightness":%d}}}\'' % level
)
- return tplink.tplink_command(cmd)
+ return tplink.tplink_command_wrapper(cmd)
# class GoogleLightGroup(GoogleLight):