Support force update for backend state

This commit is contained in:
Linus Dietz
2023-11-21 08:25:33 +01:00
parent be4a1b6791
commit 161c02fc11
2 changed files with 18 additions and 11 deletions
+4 -1
View File
@@ -244,7 +244,10 @@ def update_car_data(force_update=False, overwrite={}):
elif entity["id"] == "active_schedules":
state = active_schedules[vin]
elif entity["id"] == "api_backend_status":
state = volvo.backend_status
if force_update:
state = volvo.get_backend_status()
else:
state = volvo.backend_status
else:
if entity["id"] == ov_entity_id and vin == ov_vin:
state = ov_state