Skip to content

Commit

Permalink
Fixes for battery status
Browse files Browse the repository at this point in the history
  • Loading branch information
themoosman authored and mandarons committed Dec 9, 2024
1 parent 0721048 commit ece94de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/bouncie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def patch_missing_data(vehicle_info):
"milOn": "Not available",
"lastUpdated": "Not available",
}
elif "battery" not in vehicle_info["stats"]["mil"]:
vehicle_info["stats"]["mil"]["battery"] = {
elif "battery" not in vehicle_info["stats"]:
vehicle_info["stats"]["battery"] = {
"status": "Not available",
"lastUpdated": "Not available",
}
Expand Down

0 comments on commit ece94de

Please sign in to comment.