From 162a5d99a29420cf91dce8e578583cf4b74d1586 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Thu, 15 Oct 2020 15:35:00 -0600 Subject: [PATCH] Add common string for reauth title (#41865) --- homeassistant/components/icloud/strings.json | 2 +- homeassistant/components/icloud/translations/en.json | 3 +-- homeassistant/components/simplisafe/strings.json | 2 +- homeassistant/components/simplisafe/translations/en.json | 2 +- homeassistant/components/sonarr/strings.json | 2 +- homeassistant/components/sonarr/translations/en.json | 2 +- homeassistant/components/spotify/strings.json | 2 +- homeassistant/components/spotify/translations/en.json | 3 +-- homeassistant/components/withings/strings.json | 2 +- homeassistant/components/withings/translations/en.json | 8 +++----- homeassistant/strings.json | 1 + 11 files changed, 13 insertions(+), 16 deletions(-) diff --git a/homeassistant/components/icloud/strings.json b/homeassistant/components/icloud/strings.json index 1627dd8661e..d07b3c3b870 100644 --- a/homeassistant/components/icloud/strings.json +++ b/homeassistant/components/icloud/strings.json @@ -11,7 +11,7 @@ } }, "reauth": { - "title": "iCloud credentials", + "title": "[%key:common::config_flow::title::reauth%]", "description": "Your previously entered password for {username} is no longer working. Update your password to keep using this integration.", "data": { "password": "[%key:common::config_flow::data::password%]" diff --git a/homeassistant/components/icloud/translations/en.json b/homeassistant/components/icloud/translations/en.json index 8d19f1e7628..3097302ded2 100644 --- a/homeassistant/components/icloud/translations/en.json +++ b/homeassistant/components/icloud/translations/en.json @@ -7,7 +7,6 @@ }, "error": { "invalid_auth": "Invalid authentication", - "login": "Login error: please check your email & password", "send_verification_code": "Failed to send verification code", "validate_verification_code": "Failed to verify your verification code, choose a trust device and start the verification again" }, @@ -17,7 +16,7 @@ "password": "Password" }, "description": "Your previously entered password for {username} is no longer working. Update your password to keep using this integration.", - "title": "iCloud credentials" + "title": "Reauthenticate Integration" }, "trusted_device": { "data": { diff --git a/homeassistant/components/simplisafe/strings.json b/homeassistant/components/simplisafe/strings.json index 44b69bdf6bf..227f32ee42d 100644 --- a/homeassistant/components/simplisafe/strings.json +++ b/homeassistant/components/simplisafe/strings.json @@ -6,7 +6,7 @@ "description": "Check your email for a link from SimpliSafe. After verifying the link, return here to complete the installation of the integration." }, "reauth_confirm": { - "title": "Re-link SimpliSafe Account", + "title": "[%key:common::config_flow::title::reauth%]", "description": "Your access token has expired or been revoked. Enter your password to re-link your account.", "data": { "password": "[%key:common::config_flow::data::password%]" diff --git a/homeassistant/components/simplisafe/translations/en.json b/homeassistant/components/simplisafe/translations/en.json index 7316e302735..e9567e9e3f0 100644 --- a/homeassistant/components/simplisafe/translations/en.json +++ b/homeassistant/components/simplisafe/translations/en.json @@ -20,7 +20,7 @@ "password": "Password" }, "description": "Your access token has expired or been revoked. Enter your password to re-link your account.", - "title": "Re-link SimpliSafe Account" + "title": "Reauthenticate Integration" }, "user": { "data": { diff --git a/homeassistant/components/sonarr/strings.json b/homeassistant/components/sonarr/strings.json index 830b2ccdf7a..e4de5cb9193 100644 --- a/homeassistant/components/sonarr/strings.json +++ b/homeassistant/components/sonarr/strings.json @@ -15,7 +15,7 @@ } }, "reauth_confirm": { - "title": "Re-authenticate with Sonarr", + "title": "[%key:common::config_flow::title::reauth%]", "description": "The Sonarr integration needs to be manually re-authenticated with the Sonarr API hosted at: {host}" } }, diff --git a/homeassistant/components/sonarr/translations/en.json b/homeassistant/components/sonarr/translations/en.json index 4d29f56afa9..25b3b9f9495 100644 --- a/homeassistant/components/sonarr/translations/en.json +++ b/homeassistant/components/sonarr/translations/en.json @@ -13,7 +13,7 @@ "step": { "reauth_confirm": { "description": "The Sonarr integration needs to be manually re-authenticated with the Sonarr API hosted at: {host}", - "title": "Re-authenticate with Sonarr" + "title": "Reauthenticate Integration" }, "user": { "data": { diff --git a/homeassistant/components/spotify/strings.json b/homeassistant/components/spotify/strings.json index 76cad9bdf80..8745df8e56f 100644 --- a/homeassistant/components/spotify/strings.json +++ b/homeassistant/components/spotify/strings.json @@ -5,7 +5,7 @@ "title": "[%key:common::config_flow::title::oauth2_pick_implementation%]" }, "reauth_confirm": { - "title": "Re-authenticate with Spotify", + "title": "[%key:common::config_flow::title::reauth%]", "description": "The Spotify integration needs to re-authenticate with Spotify for account: {account}" } }, diff --git a/homeassistant/components/spotify/translations/en.json b/homeassistant/components/spotify/translations/en.json index c2f1b5544ae..1c04a5868bc 100644 --- a/homeassistant/components/spotify/translations/en.json +++ b/homeassistant/components/spotify/translations/en.json @@ -1,7 +1,6 @@ { "config": { "abort": { - "already_setup": "You can only configure one Spotify account.", "authorize_url_timeout": "Timeout generating authorize url.", "missing_configuration": "The Spotify integration is not configured. Please follow the documentation.", "no_url_available": "No URL available. For information about this error, [check the help section]({docs_url})", @@ -16,7 +15,7 @@ }, "reauth_confirm": { "description": "The Spotify integration needs to re-authenticate with Spotify for account: {account}", - "title": "Re-authenticate with Spotify" + "title": "Reauthenticate Integration" } } } diff --git a/homeassistant/components/withings/strings.json b/homeassistant/components/withings/strings.json index 166f25e41ff..db18bb0f334 100644 --- a/homeassistant/components/withings/strings.json +++ b/homeassistant/components/withings/strings.json @@ -9,7 +9,7 @@ }, "pick_implementation": { "title": "[%key:common::config_flow::title::oauth2_pick_implementation%]" }, "reauth": { - "title": "Re-authenticate Profile", + "title": "[%key:common::config_flow::title::reauth%]", "description": "The \"{profile}\" profile needs to be re-authenticated in order to continue receiving Withings data." } }, diff --git a/homeassistant/components/withings/translations/en.json b/homeassistant/components/withings/translations/en.json index f7f59d6b40d..11d1628a0dc 100644 --- a/homeassistant/components/withings/translations/en.json +++ b/homeassistant/components/withings/translations/en.json @@ -10,9 +10,7 @@ "default": "Successfully authenticated with Withings." }, "error": { - "already_configured": "Account is already configured", - "already_configured_account": "Account is already configured", - "profile_exists": "User profile is already configured. Please provide a unique profile name." + "already_configured": "Account is already configured" }, "flow_title": "Withings: {profile}", "step": { @@ -28,8 +26,8 @@ }, "reauth": { "description": "The \"{profile}\" profile needs to be re-authenticated in order to continue receiving Withings data.", - "title": "Re-authenticate Profile" + "title": "Reauthenticate Integration" } } } -} \ No newline at end of file +} diff --git a/homeassistant/strings.json b/homeassistant/strings.json index 4d1802ea43b..56577c04c2a 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -19,6 +19,7 @@ "config_flow": { "title": { "oauth2_pick_implementation": "Pick Authentication Method", + "reauth": "Reauthenticate Integration", "via_hassio_addon": "{name} via Home Assistant add-on" }, "description": {