-
-
Notifications
You must be signed in to change notification settings - Fork 35.7k
Move URL out of Mastodon strings.json #154231
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
Move URL out of Mastodon strings.json #154231
Conversation
|
Hey there @fabaff, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
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 refactors the Mastodon integration's configuration flow to move a hardcoded URL out of the translatable strings.json file. The change prevents the example URL from being translated while maintaining its functionality as a user guide.
Key Changes
- Replaced hardcoded URL in strings.json with a placeholder variable
- Added description_placeholders parameter to provide the example URL dynamically
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| homeassistant/components/mastodon/strings.json | Updated base_url description to use placeholder instead of hardcoded URL |
| homeassistant/components/mastodon/config_flow.py | Added description_placeholders to show_user_form call to provide example URL |
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.
LGTM,
Thanks @andrew-codechimp 👍
Proposed change
Move URL out of Mastodon strings.json to avoid making it translatable
For 2025.11.0b0 milestone, do not merge before to avoid translation error on new placeholder.
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: