From 94c8a54eadbf8552fa4d33dc349616d125e1a638 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Fri, 4 Feb 2022 08:23:14 -0800 Subject: 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. --- smart_home/lights.py | 1 + 1 file changed, 1 insertion(+) (limited to 'smart_home/lights.py') 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) -- cgit v1.3