mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-07-22 02:13:01 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e444b6a838 | ||
|
|
ce856d91c4 | ||
|
|
9c749001c9 |
@@ -37,6 +37,7 @@ If you like my work:<br>
|
||||
- XC90 B5 Mildhybrid (2024)
|
||||
- V90 PHEV T8 (2019)*
|
||||
- V90 PHEV T6 (2024)
|
||||
- V90 B5 Mildhybrid (2023)
|
||||
|
||||
*only partly working
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
## v1.8.25
|
||||
### 🚀 Features:
|
||||
|
||||
- Fix INTERNAL_SERVER_ERROR #165
|
||||
|
||||
## v1.8.24
|
||||
### 🚀 Features:
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
from config import settings
|
||||
|
||||
VERSION = "v1.8.24"
|
||||
VERSION = "v1.8.25"
|
||||
|
||||
OAUTH_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
|
||||
VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v2/vehicles"
|
||||
|
||||
+5
-1
@@ -265,7 +265,11 @@ def update_car_data(force_update=False, overwrite={}):
|
||||
f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/attributes",
|
||||
json.dumps(state)
|
||||
)
|
||||
state = sum(value == "FAILURE" for value in state.values())
|
||||
if state:
|
||||
state = sum(value == "FAILURE" for value in state.values())
|
||||
else:
|
||||
state = 0
|
||||
|
||||
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
||||
else:
|
||||
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
||||
|
||||
Reference in New Issue
Block a user