summaryrefslogtreecommitdiff
path: root/smart_home/lights.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-04 08:23:14 -0800
committerScott Gasch <[email protected]>2022-02-04 08:23:14 -0800
commit94c8a54eadbf8552fa4d33dc349616d125e1a638 (patch)
treeb72e672361e36b0c4c9d6823e98b8dafb75d3881 /smart_home/lights.py
parent90dc74b2ff8f36dd2495632a8150ce37dab61f1c (diff)
Fix a bug in device.py around the type of keywords, add logging and
add manage_switch_off_timers to the deps run at each checkin.
Diffstat (limited to 'smart_home/lights.py')
-rw-r--r--smart_home/lights.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/smart_home/lights.py b/smart_home/lights.py
index 80bfffa..ac1cc88 100644
--- a/smart_home/lights.py
+++ b/smart_home/lights.py
@@ -329,6 +329,7 @@ class TPLinkLight(BaseLight):
@timeout(10.0, use_signals=False, error_message="Timed out waiting for tplink.py")
def get_info(self) -> Optional[Dict]:
cmd = self.get_cmdline() + "-c info"
+ logger.debug(f'Getting status of {self.mac} via "{cmd}"...')
out = subprocess.getoutput(cmd)
logger.debug(f'RAW OUT> {out}')
out = re.sub("Sent:.*\n", "", out)