Fix AJAR state for windows

This commit is contained in:
Linus Dietz
2023-11-11 14:51:52 +01:00
parent f1953e1baa
commit 81b2771c80
4 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import mqtt
import util
import time
import re
from threading import currentThread
from threading import current_thread
from datetime import datetime, timedelta
from config import settings
from babel.dates import format_datetime
@@ -303,7 +303,7 @@ def check_engine_status(vin):
# Exit thread as engine state is unsupported by car
return None
t = currentThread()
t = current_thread()
while getattr(t, "do_run", True):
engine_state = api_call(endpoint_url, "GET", vin, "engine_state", True)
if engine_state == "ON":