zabuldon / teslajsonpy

Apache License 2.0
56 stars 62 forks source link

fix: Don't wake car for pointless commands #378

Closed carleeno closed 1 year ago

carleeno commented 1 year ago

Closes https://github.com/alandtse/tesla/issues/379

This strategically checks if some commands would be pointless if the car is asleep, and sets wake_if_asleep accordingly.

Also refactors default parameters to save ~100 lines

(this is split out from #373)

carleeno commented 1 year ago

wasn't sure if this was a fix or a feat btw, feel free to change