home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.39k stars 29.9k forks source link

Failed to format translation for key 'component.withings.config.step.reauth_confirm.title' in language 'en' #122999

Open SeanPM5 opened 1 month ago

SeanPM5 commented 1 month ago

The problem

Had to rollback my system from 2024.8b0 back to 2024.7 and it caused Withings token to be expired. Reauth worked but there was an error in logs about translations for it.

Logger: frontend.js.latest.202407100
Source: components/system_log/__init__.py:333
First occurred: 2:57:57 AM (3 occurrences)
Last logged: 2:57:58 AM

Failed to format translation for key 'component.withings.config.step.reauth_confirm.title' in language 'en'. Error: The intl string context variable "name" was not provided to the string "Authentication expired for {name}"

And this is the reauth dialog, can see the title is messed up.

Screen Shot 2024-08-01 at 3 23 13 AM

What version of Home Assistant Core has the issue?

2024.7.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Withings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/withings/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (withings) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `withings` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign withings` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


withings documentation withings source (message by IssueLinks)

joostlek commented 1 month ago

Oh lol, you started with the rollback text so I was confused for a moment why this was a reason to rollback, but understood, will have a look

SeanPM5 commented 1 month ago

Hah, sorry for the confusion. Had to rollback due to various custom integration like Alexa Media Player and MultiScrape breaking, was nothing to do with Withings. Was just trying to mention that restoring from a backup is why I had to reauth.

Did notice another small problem, creating another issue now.