Add api backend state sensor

This commit is contained in:
Linus Dietz
2023-11-20 19:33:27 +01:00
parent 843e00acd1
commit 8803f9ff1d
5 changed files with 33 additions and 5 deletions
+2
View File
@@ -243,6 +243,8 @@ def update_car_data(force_update=False, overwrite={}):
state = last_data_update
elif entity["id"] == "active_schedules":
state = active_schedules[vin]
elif entity["id"] == "api_backend_status":
state = volvo.backend_status
else:
if entity["id"] == ov_entity_id and vin == ov_vin:
state = ov_state