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

Remove unit from inspection entities #657

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

dvx76
Copy link
Member

@dvx76 dvx76 commented Mar 9, 2025

Entity IDs and names should not include units (in this case km) since the unit could be converted by homeassistant (e.g. miles) in which case the entity name becomes confusing.

Both are derived from the translations.

Use the same name for the inspection in days and in distance, which was already the case for at least one translation. Change the icon for the inspection in distance (matching the icon for mileage) to more easily differentiate them.

Do not modify the entity (translation-)keys to keep them in line with the underlying model/API responses.

Fixes #496

Entity IDs and names should not include units (in this case km) since
the unit could be converted by homeassistant (e.g. miles) in which case
the entity name becomes confusing.

Both are derived from the translations.

Use the same name for the inspection in days and in distance, which was
already the case for at least one translation. Change the icon for the
inspection in distance (matching the icon for mileage) to more easily
differentiate them.

Do not modify the entity (translation-)keys to keep them in line with
the underlying model/API responses.

Fixes skodaconnect#496
@dvx76 dvx76 requested review from WebSpider and prvakt March 9, 2025 08:30
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

@dvx76 dvx76 merged commit 611bf4b into skodaconnect:main Mar 9, 2025
3 checks passed
@WebSpider WebSpider added translations chore Code maintenance labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Code maintenance translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "in KM" from "Next inspection" and "Oil service" sensors
2 participants