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

refactor(Hyundai USA): Migration from climate actions methods to engine action methods #434

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dbolger
Copy link

@dbolger dbolger commented Oct 29, 2023

Continuation of #404

There's still a lot to be done for other API implementations. This is purely focused on the BlueLink USA API for the time being.

It may be time to create a utils.py file to put the _determine_climate_options and other helper methods into.

Each API request seems to follow the same pattern:

  1. Determine variables (vehicle type, the action being taken, options)
  2. Generate the needed data/parameters to make a request using variables
  3. Send the request

With some more refactoring effort, the codebase could be simplified.

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.

1 participant