From c138ee7bf7b488f47e2a1b7b67ffc83374f98303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 24 Jul 2022 10:13:44 +0200 Subject: [PATCH] moved datetime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 195f65d..332d8cd 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +from datetime import datetime def debug_print(message: str): now = datetime.now() current_time = now.strftime("%H:%M:%S") @@ -10,10 +11,8 @@ def error_print(message: str): debug_print("Importing modules") - from string import whitespace import time -from datetime import datetime import os try: import paho.mqtt.client as mqtt