diff --git a/runs/remoteSupport/remoteSupport.py b/runs/remoteSupport/remoteSupport.py index 0739cb5c30..15913eae09 100755 --- a/runs/remoteSupport/remoteSupport.py +++ b/runs/remoteSupport/remoteSupport.py @@ -2,6 +2,7 @@ import logging import re import json +from datetime import datetime from subprocess import Popen from pathlib import Path from time import sleep @@ -9,7 +10,6 @@ import paho.mqtt.client as mqtt import platform -from helpermodules.timecheck import create_timestamp API_VERSION = "1" BASE_PATH = Path(__file__).resolve().parents[2] @@ -210,7 +210,7 @@ def is_tunnel_closed(tunnel: Popen) -> bool: lt_executable = get_lt_executable() -client = mqtt.Client(f"openWB-remote-{get_serial()}-{create_timestamp()}") +client = mqtt.Client(f"openWB-remote-{get_serial()}-{datetime.today().timestamp()}") client.on_connect = on_connect client.on_message = on_message client.will_set(STATE_TOPIC, json.dumps("offline"), qos=2, retain=True)