X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=smart_home%2Foutlets.py;fp=smart_home%2Foutlets.py;h=37655673550364f77c0e97c693058575bb4a9821;hb=7dd95b88a2a1a977506300f337e4b50a2df13141;hp=b9bfe22e694f7645df142c73335492aa41831b50;hpb=4863b00af3b2ddcfaa2e5f47fd6dd7e95c1eb6c5;p=python_utils.git diff --git a/smart_home/outlets.py b/smart_home/outlets.py index b9bfe22..3765567 100644 --- a/smart_home/outlets.py +++ b/smart_home/outlets.py @@ -87,7 +87,7 @@ class TPLinkOutlet(BaseOutlet): cmd = self.get_cmdline() + f"-c {cmd}" if extra_args is not None: cmd += f" {extra_args}" - return tplink.tplink_command(cmd) + return tplink.tplink_command_wrapper(cmd) @overrides def turn_on(self) -> bool: @@ -152,7 +152,7 @@ class TPLinkOutletWithChildren(TPLinkOutlet): 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) def get_children(self) -> List[str]: return self.children