Use common strings and fix key name for error in vizio (#35487)

* use common strings where applicable and fix key name for error

* add additional key reference

* update access token reference
This commit is contained in:
Raman Gupta 2020-05-11 05:26:31 -04:00 committed by GitHub
parent 717c55d1f5
commit 823a44cd23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,12 @@
"step": { "step": {
"user": { "user": {
"title": "Setup VIZIO SmartCast Device", "title": "Setup VIZIO SmartCast Device",
"description": "An Access Token is only needed for TVs. If you are configuring a TV and do not have an Access Token yet, leave it blank to go through a pairing process.", "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": { "data": {
"name": "Name", "name": "Name",
"host": "<Host/IP>:<Port>", "host": "<Host/IP>:<Port>",
"device_class": "Device Type", "device_class": "Device Type",
"access_token": "Access Token" "access_token": "[%key:common::config_flow::data::access_token%]"
} }
}, },
"pair_tv": { "pair_tv": {
@ -22,14 +22,14 @@
}, },
"pairing_complete_import": { "pairing_complete_import": {
"title": "Pairing Complete", "title": "Pairing Complete",
"description": "Your VIZIO SmartCast TV is now connected to Home Assistant.\n\nYour Access Token is '**{access_token}**'." "description": "Your VIZIO SmartCast TV is now connected to Home Assistant.\n\nYour [%key:common::config_flow::data::access_token%] is '**{access_token}**'."
} }
}, },
"error": { "error": {
"host_exists": "VIZIO device with specified host already configured.", "host_exists": "VIZIO device with specified host already configured.",
"name_exists": "VIZIO device with specified name already configured.", "name_exists": "VIZIO device with specified name already configured.",
"complete_pairing failed": "Unable to complete pairing. Ensure the PIN you provided is correct and the TV is still powered and connected to the network before resubmitting.", "complete_pairing_failed": "Unable to complete pairing. Ensure the PIN you provided is correct and the TV is still powered and connected to the network before resubmitting.",
"cant_connect": "Could not connect to the device. [Review the docs](https://www.home-assistant.io/integrations/vizio/) and re-verify that:\n- The device is powered on\n- The device is connected to the network\n- The values you filled in are accurate\nbefore attempting to resubmit." "cant_connect": "[%key:common::config_flow::error::cannot_connect%]"
}, },
"abort": { "abort": {
"already_setup": "This entry has already been setup.", "already_setup": "This entry has already been setup.",