Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

set_temps command not working correctly in downloaded file, but I fixed it on my end #4

Open
sranta opened this issue Dec 1, 2014 · 2 comments

Comments

@sranta
Copy link

sranta commented Dec 1, 2014

The current vehicle.py file contains this code to set the temperatures in the car:
def set_temps(self, driver, passenger):
p = self._command('set_temps', driver_degC = driver, pasenger_temp = passenger)
return p['result']
This code will not set the temps properly in the car and will always set the temperature to 17C. The code needs to be changed to:
def set_temps(self, driver, passenger):
p = self._command('set_temps', driver_temp = driver, passenger_temp = passenger)
return p['result']
I changed this in my code and it works perfectly now.

@nside
Copy link
Owner

nside commented Dec 1, 2014

sorry about this. feel free to send a PR

@sranta
Copy link
Author

sranta commented Dec 1, 2014

No worries...I'm a new github user, so hopefully I sent the PR correctly.
pytesla was exactly what I was looking for a new project I want to work on!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants