From 04daa9a378243a9d52c141e6bd278877545c0d70 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sat, 3 Oct 2020 15:28:42 +0200 Subject: [PATCH] Add name to base strings for config flows (#40947) * Add name to base strings for config flows * Fix HA strings.json --- homeassistant/components/broadlink/strings.json | 2 +- homeassistant/components/emulated_roku/strings.json | 2 +- homeassistant/components/glances/strings.json | 2 +- homeassistant/components/goalzero/strings.json | 2 +- homeassistant/components/ipma/strings.json | 2 +- homeassistant/components/met/strings.json | 2 +- homeassistant/components/mikrotik/strings.json | 2 +- homeassistant/components/minecraft_server/strings.json | 4 ++-- homeassistant/components/nzbget/strings.json | 2 +- homeassistant/components/onvif/strings.json | 2 +- homeassistant/components/opentherm_gw/strings.json | 6 +++++- homeassistant/components/panasonic_viera/strings.json | 2 +- homeassistant/components/pi_hole/strings.json | 2 +- homeassistant/components/ps4/strings.json | 2 +- homeassistant/components/samsungtv/strings.json | 4 ++-- homeassistant/components/smhi/strings.json | 2 +- homeassistant/components/syncthru/strings.json | 2 +- homeassistant/components/transmission/strings.json | 4 ++-- homeassistant/components/vizio/strings.json | 4 ++-- homeassistant/strings.json | 1 + 20 files changed, 28 insertions(+), 23 deletions(-) diff --git a/homeassistant/components/broadlink/strings.json b/homeassistant/components/broadlink/strings.json index d17c639469a..53e63d4f363 100644 --- a/homeassistant/components/broadlink/strings.json +++ b/homeassistant/components/broadlink/strings.json @@ -26,7 +26,7 @@ "finish": { "title": "Choose a name for the device", "data": { - "name": "Name" + "name": "[%key:common::config_flow::data::name%]" } } }, diff --git a/homeassistant/components/emulated_roku/strings.json b/homeassistant/components/emulated_roku/strings.json index a47c1c4799b..a47f3f9a2e7 100644 --- a/homeassistant/components/emulated_roku/strings.json +++ b/homeassistant/components/emulated_roku/strings.json @@ -9,7 +9,7 @@ "advertise_port": "Advertise port", "host_ip": "Host IP", "listen_port": "Listen port", - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "upnp_bind_multicast": "Bind multicast (True/False)" }, "title": "Define server configuration" diff --git a/homeassistant/components/glances/strings.json b/homeassistant/components/glances/strings.json index 9d0131420a0..49185c4d169 100644 --- a/homeassistant/components/glances/strings.json +++ b/homeassistant/components/glances/strings.json @@ -4,7 +4,7 @@ "user": { "title": "Setup Glances", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", diff --git a/homeassistant/components/goalzero/strings.json b/homeassistant/components/goalzero/strings.json index 5b8bed63e6a..57b03d4dd73 100644 --- a/homeassistant/components/goalzero/strings.json +++ b/homeassistant/components/goalzero/strings.json @@ -6,7 +6,7 @@ "description": "First, you need to download the Goal Zero app: https://www.goalzero.com/product-features/yeti-app/\n\nFollow the instructions to connect your Yeti to your Wifi network. Then get the host ip from your router. DHCP must be set up in your router settings for the device to ensure the host ip does not change. Refer to your router's user manual.", "data": { "host": "[%key:common::config_flow::data::host%]", - "name": "Name" + "name": "[%key:common::config_flow::data::name%]" } } }, diff --git a/homeassistant/components/ipma/strings.json b/homeassistant/components/ipma/strings.json index 31174f64c3f..e3825bd4b27 100644 --- a/homeassistant/components/ipma/strings.json +++ b/homeassistant/components/ipma/strings.json @@ -5,7 +5,7 @@ "title": "Location", "description": "Instituto Portugu\u00eas do Mar e Atmosfera", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "latitude": "[%key:common::config_flow::data::latitude%]", "longitude": "[%key:common::config_flow::data::longitude%]", "mode": "Mode" diff --git a/homeassistant/components/met/strings.json b/homeassistant/components/met/strings.json index 8d3fdea5085..c3e28d98eff 100644 --- a/homeassistant/components/met/strings.json +++ b/homeassistant/components/met/strings.json @@ -5,7 +5,7 @@ "title": "Location", "description": "Meteorologisk institutt", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "latitude": "[%key:common::config_flow::data::latitude%]", "longitude": "[%key:common::config_flow::data::longitude%]", "elevation": "Elevation" diff --git a/homeassistant/components/mikrotik/strings.json b/homeassistant/components/mikrotik/strings.json index 6931a30fbf7..71c73d1d592 100644 --- a/homeassistant/components/mikrotik/strings.json +++ b/homeassistant/components/mikrotik/strings.json @@ -4,7 +4,7 @@ "user": { "title": "Set up Mikrotik Router", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", diff --git a/homeassistant/components/minecraft_server/strings.json b/homeassistant/components/minecraft_server/strings.json index c0a0c78d5d9..a8a608075ea 100644 --- a/homeassistant/components/minecraft_server/strings.json +++ b/homeassistant/components/minecraft_server/strings.json @@ -5,7 +5,7 @@ "title": "Link your Minecraft Server", "description": "Set up your Minecraft Server instance to allow monitoring.", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]" } } @@ -19,4 +19,4 @@ "already_configured": "Host is already configured." } } -} \ No newline at end of file +} diff --git a/homeassistant/components/nzbget/strings.json b/homeassistant/components/nzbget/strings.json index 5a0c31054a9..98d02a1d2ef 100644 --- a/homeassistant/components/nzbget/strings.json +++ b/homeassistant/components/nzbget/strings.json @@ -5,7 +5,7 @@ "user": { "title": "Connect to NZBGet", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", diff --git a/homeassistant/components/onvif/strings.json b/homeassistant/components/onvif/strings.json index b6ae9b98d9a..8f47b69a607 100644 --- a/homeassistant/components/onvif/strings.json +++ b/homeassistant/components/onvif/strings.json @@ -23,7 +23,7 @@ }, "manual_input": { "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "port": "[%key:common::config_flow::data::port%]" }, diff --git a/homeassistant/components/opentherm_gw/strings.json b/homeassistant/components/opentherm_gw/strings.json index eb074e608ca..332b97eb5ee 100644 --- a/homeassistant/components/opentherm_gw/strings.json +++ b/homeassistant/components/opentherm_gw/strings.json @@ -3,7 +3,11 @@ "step": { "init": { "title": "OpenTherm Gateway", - "data": { "name": "Name", "device": "Path or URL", "id": "ID" } + "data": { + "name": "[%key:common::config_flow::data::name%]", + "device": "Path or URL", + "id": "ID" + } } }, "error": { diff --git a/homeassistant/components/panasonic_viera/strings.json b/homeassistant/components/panasonic_viera/strings.json index f3943fde71d..65c8aefb39f 100644 --- a/homeassistant/components/panasonic_viera/strings.json +++ b/homeassistant/components/panasonic_viera/strings.json @@ -7,7 +7,7 @@ "description": "Enter your Panasonic Viera TV's IP address", "data": { "host": "[%key:common::config_flow::data::ip%]", - "name": "Name" + "name": "[%key:common::config_flow::data::name%]" } }, "pairing": { diff --git a/homeassistant/components/pi_hole/strings.json b/homeassistant/components/pi_hole/strings.json index 42faf5d5a46..ccfc267b3c6 100644 --- a/homeassistant/components/pi_hole/strings.json +++ b/homeassistant/components/pi_hole/strings.json @@ -5,7 +5,7 @@ "data": { "host": "[%key:common::config_flow::data::host%]", "port": "[%key:common::config_flow::data::port%]", - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "location": "Location", "api_key": "[%key:common::config_flow::data::api_key%]", "ssl": "Use SSL", diff --git a/homeassistant/components/ps4/strings.json b/homeassistant/components/ps4/strings.json index a44dfb0c9a9..c538852db56 100644 --- a/homeassistant/components/ps4/strings.json +++ b/homeassistant/components/ps4/strings.json @@ -18,7 +18,7 @@ "description": "Enter your PlayStation 4 information. For 'PIN', navigate to 'Settings' on your PlayStation 4 console. Then navigate to 'Mobile App Connection Settings' and select 'Add Device'. Enter the PIN that is displayed. Refer to the [documentation](https://www.home-assistant.io/components/ps4/) for additional info.", "data": { "region": "Region", - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "code": "PIN", "ip_address": "[%key:common::config_flow::data::ip%]" } diff --git a/homeassistant/components/samsungtv/strings.json b/homeassistant/components/samsungtv/strings.json index e615728776e..8f26bbf6c11 100644 --- a/homeassistant/components/samsungtv/strings.json +++ b/homeassistant/components/samsungtv/strings.json @@ -6,7 +6,7 @@ "description": "Enter your Samsung TV information. If you never connected Home Assistant before you should see a popup on your TV asking for authorization.", "data": { "host": "[%key:common::config_flow::data::host%]", - "name": "Name" + "name": "[%key:common::config_flow::data::name%]" } }, "confirm": { @@ -22,4 +22,4 @@ "not_supported": "This Samsung TV device is currently not supported." } } -} \ No newline at end of file +} diff --git a/homeassistant/components/smhi/strings.json b/homeassistant/components/smhi/strings.json index 759b13f3c04..0bba0c2ab48 100644 --- a/homeassistant/components/smhi/strings.json +++ b/homeassistant/components/smhi/strings.json @@ -4,7 +4,7 @@ "user": { "title": "Location in Sweden", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "latitude": "[%key:common::config_flow::data::latitude%]", "longitude": "[%key:common::config_flow::data::longitude%]" } diff --git a/homeassistant/components/syncthru/strings.json b/homeassistant/components/syncthru/strings.json index 1824763c8f8..0164fdf6ddc 100644 --- a/homeassistant/components/syncthru/strings.json +++ b/homeassistant/components/syncthru/strings.json @@ -18,7 +18,7 @@ }, "user": { "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "url": "Web interface URL" } } diff --git a/homeassistant/components/transmission/strings.json b/homeassistant/components/transmission/strings.json index 66a5b757818..c8d999a920c 100644 --- a/homeassistant/components/transmission/strings.json +++ b/homeassistant/components/transmission/strings.json @@ -4,7 +4,7 @@ "user": { "title": "Setup Transmission Client", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/homeassistant/components/vizio/strings.json b/homeassistant/components/vizio/strings.json index 8979f6fd82e..4cd2932c265 100644 --- a/homeassistant/components/vizio/strings.json +++ b/homeassistant/components/vizio/strings.json @@ -5,7 +5,7 @@ "title": "VIZIO SmartCast Device", "description": "An [%key:common::config_flow::data::access_token%] is only needed for TVs. If you are configuring a TV and do not have an [%key:common::config_flow::data::access_token%] yet, leave it blank to go through a pairing process.", "data": { - "name": "Name", + "name": "[%key:common::config_flow::data::name%]", "host": "[%key:common::config_flow::data::host%]", "device_class": "Device Type", "access_token": "[%key:common::config_flow::data::access_token%]" @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/homeassistant/strings.json b/homeassistant/strings.json index f0a674f983a..f890c7f4ce0 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -25,6 +25,7 @@ "confirm_setup": "Do you want to start set up?" }, "data": { + "name": "Name", "email": "Email", "username": "Username", "password": "Password",