#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
"""Utilities for dealing with the smart outlets."""
import asyncio
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:
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