This commit is contained in:
2026-03-02 09:32:26 +00:00
parent 19b72a8f5c
commit 9d62d44bc4
+2 -1
View File
@@ -66,6 +66,8 @@ def update():
time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time())
else:
time = to_seconds(datetime.strptime(data["time"], "%H:%M").time())
print("Got :" + data)
print(time)
now = to_seconds(datetime.now().time())
if (time - now) < 0:
@@ -78,7 +80,6 @@ def update():
remove_shutdown()
print("[BS Shutdown] New value")
set_shutdown(time, now)
LAST_VALUE = time
if __name__ == '__main__':
while True: