diff --git a/tapo_exporter.py b/tapo_exporter.py old mode 100644 new mode 100755 index 83664b1..e8f4e7c --- a/tapo_exporter.py +++ b/tapo_exporter.py @@ -36,7 +36,7 @@ class TplinkT315: await self.hubDev.update() except KasaException as e: self.hubDev = None - print(f"[TplinkT315::connect] Error: {e}") + print(f"[TplinkT315::connect] Hub Error: {e}") return False try: @@ -44,7 +44,7 @@ class TplinkT315: await self.t315Dev.update() except KasaException as e: self.t315Dev = None - print(f"[TplinkT315::connect] Error: {e}") + print(f"[TplinkT315::connect] Device Error: {e}") return False return True @@ -98,6 +98,7 @@ def getSecrets(fileanme): async def main(configs): secrect = getSecrets(configs.get("secret_filepath", DEFAULT_POLLING_INTERVAL)) if secrect is None: + print(f'Cannot read secret file({configs.get("secret_filepath", DEFAULT_POLLING_INTERVAL)})') return hubIp = secrect["ip"]