From 81ceb3e4994ee158348c634849f75c491ea9c6ab Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Wed, 7 Oct 2020 05:34:06 +0200 Subject: [PATCH] Add already_configured_location to base strings for config flows (#41335) * Add already_configured_location key * Use already_configured_location in Airly * Use already_configured_location in Flu Near You * Use already_configured_location in OpenUV * Use already_configured_location in Open Weather Map * Use already_configured_location in AirVisual --- homeassistant/components/airly/strings.json | 2 +- homeassistant/components/airvisual/strings.json | 2 +- homeassistant/components/flunearyou/strings.json | 2 +- homeassistant/components/openuv/strings.json | 2 +- homeassistant/components/openweathermap/strings.json | 2 +- homeassistant/strings.json | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/airly/strings.json b/homeassistant/components/airly/strings.json index 9d335232286..f6e6b6d5f6d 100644 --- a/homeassistant/components/airly/strings.json +++ b/homeassistant/components/airly/strings.json @@ -17,7 +17,7 @@ "invalid_api_key": "[%key:common::config_flow::error::invalid_api_key%]" }, "abort": { - "already_configured": "Airly integration for these coordinates is already configured." + "already_configured": "[%key:common::config_flow::abort::already_configured_location%]" } } } diff --git a/homeassistant/components/airvisual/strings.json b/homeassistant/components/airvisual/strings.json index fd8e10f105e..b95f7d32704 100644 --- a/homeassistant/components/airvisual/strings.json +++ b/homeassistant/components/airvisual/strings.json @@ -34,7 +34,7 @@ "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" }, "abort": { - "already_configured": "These coordinates or Node/Pro ID are already registered." + "already_configured": "[%key:common::config_flow::abort::already_configured_location%] or Node/Pro ID is already registered." } }, "options": { diff --git a/homeassistant/components/flunearyou/strings.json b/homeassistant/components/flunearyou/strings.json index 780f28fcc6f..5736b266e6c 100644 --- a/homeassistant/components/flunearyou/strings.json +++ b/homeassistant/components/flunearyou/strings.json @@ -14,7 +14,7 @@ "unknown": "[%key:common::config_flow::error::unknown%]" }, "abort": { - "already_configured": "These coordinates are already registered." + "already_configured": "[%key:common::config_flow::abort::already_configured_location%]" } } } \ No newline at end of file diff --git a/homeassistant/components/openuv/strings.json b/homeassistant/components/openuv/strings.json index 039a7a9d689..d5dec9e0eed 100644 --- a/homeassistant/components/openuv/strings.json +++ b/homeassistant/components/openuv/strings.json @@ -16,7 +16,7 @@ "invalid_api_key": "[%key:common::config_flow::error::invalid_api_key%]" }, "abort": { - "already_configured": "These coordinates are already registered." + "already_configured": "[%key:common::config_flow::abort::already_configured_location%]" } } } diff --git a/homeassistant/components/openweathermap/strings.json b/homeassistant/components/openweathermap/strings.json index 15b5c0f4d57..4fb415522e7 100644 --- a/homeassistant/components/openweathermap/strings.json +++ b/homeassistant/components/openweathermap/strings.json @@ -1,7 +1,7 @@ { "config": { "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_service%] for these coordinates." + "already_configured": "[%key:common::config_flow::abort::already_configured_location%]" }, "error": { "invalid_api_key": "[%key:common::config_flow::error::invalid_api_key%]", diff --git a/homeassistant/strings.json b/homeassistant/strings.json index 9449c086023..09100a174f4 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -56,8 +56,9 @@ "abort": { "single_instance_allowed": "Already configured. Only a single configuration possible.", "already_configured_account": "Account is already configured", - "already_configured_service": "Service is already configured", "already_configured_device": "Device is already configured", + "already_configured_location": "Location is already configured", + "already_configured_service": "Service is already configured", "already_in_progress": "Configuration flow is already in progress", "no_devices_found": "No devices found on the network", "oauth2_missing_configuration": "The component is not configured. Please follow the documentation.",