Skip to content

Commit 68eb23c

Browse files
authored
fix cloud (#2194)
1 parent 690ee4f commit 68eb23c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runs/remoteSupport/remoteSupport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import logging
33
import re
44
import json
5+
from datetime import datetime
56
from subprocess import Popen
67
from pathlib import Path
78
from time import sleep
89
from typing import Optional
910
import paho.mqtt.client as mqtt
1011
import platform
1112

12-
from helpermodules.timecheck import create_timestamp
1313

1414
API_VERSION = "1"
1515
BASE_PATH = Path(__file__).resolve().parents[2]
@@ -210,7 +210,7 @@ def is_tunnel_closed(tunnel: Popen) -> bool:
210210

211211

212212
lt_executable = get_lt_executable()
213-
client = mqtt.Client(f"openWB-remote-{get_serial()}-{create_timestamp()}")
213+
client = mqtt.Client(f"openWB-remote-{get_serial()}-{datetime.today().timestamp()}")
214214
client.on_connect = on_connect
215215
client.on_message = on_message
216216
client.will_set(STATE_TOPIC, json.dumps("offline"), qos=2, retain=True)

0 commit comments

Comments
 (0)