-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
Remove URL from ViCare strings.json #154243
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes hardcoded URLs from translatable strings in the ViCare integration and moves them to configuration placeholders for better maintainability and localization. The change ensures URLs are not part of translatable content while still being accessible through templating.
- Extracts hardcoded Viessmann developer portal URL into a constant
- Updates configuration flow to use description placeholders for URL substitution
- Replaces inline URL in strings.json with placeholder reference
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
homeassistant/components/vicare/strings.json |
Removes hardcoded URL from description and data_description, adds placeholder reference |
homeassistant/components/vicare/entity.py |
Updates to use constant for configuration URL instead of hardcoded string |
homeassistant/components/vicare/const.py |
Adds new constant for Viessmann developer portal URL |
homeassistant/components/vicare/config_flow.py |
Adds description_placeholders to both user and reauth_confirm steps |
| VICARE_NAME = "ViCare" | ||
| VICARE_TOKEN_FILENAME = "vicare_token.save" | ||
|
|
||
| VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann-climatesolutions.com" |
Copilot
AI
Oct 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL differs from the original URL in strings.json ('https://app.developer.viessmann.com' vs 'https://app.developer.viessmann-climatesolutions.com'). This could be a breaking change if the original URL was correct. Please verify this is the intended URL update.
| VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann-climatesolutions.com" | |
| VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann.com" |
Proposed change
Remove URL to developer portal form translatable string and into
description_placeholders.Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: