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

Add possibility to request a partial update of a vehicle #278

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

WebSpider
Copy link
Contributor

Add logic to request partial updates:

  • New ✨ : get_partial_update() does a partial update depending on the passed capabilities
  • get_vehicle() calls get_partial_update() with a complete list of capabilities for backward compatibility

This enables users of the library to conditionally request updates of only parts of the vehicle. Most notably at time of writing is the CitigoE example that seems to have very limited credits on the vehicle-health endpoint.

- get_partial_update() does a partial update depending on the passed capabilities
- get_vehicle() calls get_partial_update() with a complete list of capabilities for backward compatibility
@WebSpider WebSpider requested review from dvx76 and prvakt December 10, 2024 14:38
@WebSpider WebSpider added the enhancement New feature or request label Dec 10, 2024
@prvakt prvakt closed this Dec 10, 2024
@prvakt prvakt reopened this Dec 10, 2024
Copy link
Collaborator

@prvakt prvakt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@WebSpider WebSpider merged commit 906f65c into skodaconnect:main Dec 10, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants