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

Change range to work with all car types, make icon car-type dependant #268

Merged
merged 10 commits into from
Nov 13, 2024

Conversation

prvakt
Copy link
Collaborator

@prvakt prvakt commented Nov 12, 2024

Changed range to use value from driving_range.total_range_in_km instead of a value from charging (so it can be used by all engine types)

Changed range to use value from driving_range.total_range_in_km instead of a value from charging (so it can be used by all engine types)
Copy link
Member

@dvx76 dvx76 left a comment

Choose a reason for hiding this comment

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

Great. No idea why we didn't use the range from the driving_range right away 🤷‍♂️

Minor comment + linter wants an extra newline (tip: install https://docs.astral.sh/ruff/ in your editor and it will auto-format things for you right away)

custom_components/myskoda/sensor.py Show resolved Hide resolved
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.

Looks good to me. As soon as you fix the merge conflict, we can go ahead and commit this. Thanks for your contribution!

@WebSpider WebSpider added the bugfix This PR contains a bugfix label Nov 13, 2024
@WebSpider WebSpider changed the title Change range to use driving_range.total_range_in_km Change range to work with all car types, make icon car-type dependant Nov 13, 2024
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.

Thanks for your contribution!

@WebSpider WebSpider merged commit f756a2f into skodaconnect:main Nov 13, 2024
3 checks passed
@prvakt prvakt deleted the combined-range branch November 13, 2024 20:43
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.

3 participants