-
Notifications
You must be signed in to change notification settings - Fork 332
fix: remove message placeholder from 2fa_key_invalid error #3191
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
base: dev
Are you sure you want to change the base?
Conversation
WalkthroughThis PR simplifies the 2FA invalid key error message across all translation files by removing the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks. Only strings.json needs to be modified. Others are autogenerated on build so all changes will be wiped. Please keep only strings.json. |
Ah ok, sorry, I didn’t know that… now I’ve changed only the placeholder in strings.json. |
|
@danielbrunt57 I believe your change removed the message. Please confirm it's not actually used and approve. |
I approve. I've confirmed that the current I'm working up a different scheme which checks the key the user input and will pass different messages depending on what they input (TOTP code, incorrectly formatted 2SV key, etc.) so they are better informed of the mistake they made. However, to permit translation of different messages, I'll need to add additional translatable |
danielbrunt57
left a comment
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.
I've confirmed that the current config_flow.py doesn't pass the "message" placeholder thus creating an error since the current strings.json expects it. I don't see any other PR's from myself or others that reinstates a "message" placeholder so this PR is required.
|
I thought we use to have a message, are you saying it's totally gone now? @danielbrunt57 If it makes sense to drop the message that's fine, but I don't want to lose info if it was inadvertent. |
Nope. In the past there were no placeholders at all. This is v5.7.12 I attempted to improve what the user saw for an error message but with the myriad of conflicting PR's, my |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.