Skip to content

Commit

Permalink
Only add vehicles to carApiVehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed Feb 4, 2024
1 parent ba6b91b commit 9bbfe13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/TWCManager/Vehicle/TeslaAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def __init__(self, master):
self.generateChallenge()

def addVehicle(self, json):
self.carApiVehicles.append(CarApiVehicle(json, self, self.config))
return True
if "vin" in json:
self.carApiVehicles.append(CarApiVehicle(json, self, self.config))

def apiDebugInterface(self, command, vehicleID, parameters):
# Provides an interface from the Web UI to allow commands to be run interactively
Expand Down

0 comments on commit 9bbfe13

Please sign in to comment.