Skip to content

Commit

Permalink
Merge pull request #554 from RichieB2B/cars-only
Browse files Browse the repository at this point in the history
Only add vehicles to carApiVehicles
  • Loading branch information
ngardiner committed Feb 4, 2024
2 parents ba6b91b + 9bbfe13 commit 9a3b34e
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 9a3b34e

Please sign in to comment.