Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

carleeno
Copy link
Contributor

@carleeno carleeno commented Dec 8, 2022

Closes alandtse/tesla#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
Copy link
Contributor Author

carleeno commented Dec 8, 2022

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

@carleeno carleeno force-pushed the dont-wake-for-pointless-commands branch from a6d7999 to f586618 Compare December 8, 2022 03:59
@alandtse alandtse merged commit 20f309e into zabuldon:dev Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] Will setting the charge limit to the same existing value wake the car if it's asleep?
2 participants