mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 11:19:52 +02:00
Fix charging system status
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ def parse_api_data(url, data, sensor_id=None):
|
||||
else:
|
||||
return ""
|
||||
elif sensor_id == "charging_system_status":
|
||||
if "charging_system_status" in data["data"]:
|
||||
if "chargingSystemStatus" in data["data"]:
|
||||
return charging_system_states[data["data"]["chargingSystemStatus"]["value"]]
|
||||
else:
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user