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

Force update if charging service event contains no data #617

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

fursov
Copy link
Contributor

@fursov fursov commented Feb 7, 2025

In case the charging service event does not contain data, there is chance that no charging data is updated while the car is charging (scenario described in #608). Even now the battery charge percentage sensor does not get "Undefined" state, it is not updated properly (basically it may appear that the battery charge percentage in the beginning of the charging is 0% and then at some point already 100%). There is a need to track the actual battery charge process.
The PR fixes the problem by doing explicit request for updating the charging status if the service event does not contain status data.
The PR removes the use of the ServiceEventData structure because it is not sent from myskoda library anymore for charging service events.

@WebSpider WebSpider self-assigned this Feb 10, 2025
Copy link
Contributor

@WebSpider WebSpider left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks for helping out! 🙏

@WebSpider WebSpider merged commit 32e3ecc into skodaconnect:main Feb 11, 2025
3 checks passed
@WebSpider WebSpider added the bugfix This PR contains a bugfix label Feb 11, 2025
@fursov fursov deleted the update-on-charging-event branch February 11, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR contains a bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants