diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index c16b545..015df5e 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.8.19 +### 🐛 Bug Fixes: + +- Fix Estimated Charging Time not changing to zero #133 + ## v1.8.18 ### 🐛 Bug Fixes: diff --git a/src/config.yaml b/src/config.yaml index 4bb8a56..a97d29f 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -1,6 +1,6 @@ name: "Volvo2Mqtt" description: "Volvo AAOS MQTT bridge" -version: "1.8.18" +version: "1.8.19" slug: "volvo2mqtt" init: false url: "https://github.com/Dielee/volvo2mqtt" diff --git a/src/const.py b/src/const.py index 521b131..67a8e68 100644 --- a/src/const.py +++ b/src/const.py @@ -1,6 +1,6 @@ from config import settings -VERSION = "v1.8.18" +VERSION = "v1.8.19" OAUTH_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2" VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v2/vehicles" diff --git a/src/mqtt.py b/src/mqtt.py index 5b7c3c8..5a213d3 100644 --- a/src/mqtt.py +++ b/src/mqtt.py @@ -259,7 +259,7 @@ def update_car_data(force_update=False, overwrite={}): else: topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state" - if state: + if state or state == 0: mqtt_client.publish( topic, json.dumps(state) if isinstance(state, dict) or isinstance(state, list) else state