This commit is contained in:
Linus Dietz
2023-11-22 07:15:20 +01:00
parent 2e95e71661
commit f03ff8953c
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -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