mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 03:09:52 +02:00
Add debug option
This commit is contained in:
@@ -139,6 +139,9 @@ def api_call(url, method, vin, sensor_id=None):
|
||||
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
if "debug" in settings:
|
||||
if settings["debug"]:
|
||||
print(response.text)
|
||||
else:
|
||||
if url == CLIMATE_START_URL and response.status_code == 503:
|
||||
print("Car in use, cannot start pre climatization")
|
||||
|
||||
Reference in New Issue
Block a user