Skip to content

Commit

Permalink
Ensure publish_time is defined #1019
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Jun 13, 2024
1 parent 70b12e1 commit a46db85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BridgeEmulator/services/updateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def versionCheck():

def githubCheck():
#creation_time = "2024-02-18 19:50:15.000000000 +0100\n"# HA "2024-02-18 19:50:15.000000000\n"
publish_time = "1970-01-01 00:00:00.000000000 +0100\n"
creation_time = subprocess.run("stat -c %y HueEmulator3.py", shell=True, capture_output=True, text=True)#2024-02-18 19:50:15.000000000 +0100\n
creation_time_arg1 = creation_time.stdout.replace(".", " ").split(" ")#2024-02-18, 19:50:15, 000000000, +0100\n
if (len(creation_time_arg1) < 4):
Expand Down

0 comments on commit a46db85

Please sign in to comment.