Skip to content

Commit

Permalink
chore: reorder restore_volume key/value pairs (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbrunt57 authored Dec 31, 2024
1 parent 7c450e0 commit c16bac9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 55 deletions.
8 changes: 4 additions & 4 deletions custom_components/alexa_media/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@
}
},
"restore_volume": {
"name": "Restore Previous Volume",
"description": "Restore previous volume level on Alexa media player device",
"fields": {
"entity_id": {
"description": "Entity to restore the previous volume level on",
"name": "Select media player:"
"name": "Select media player:",
"description": "Entity to restore the previous volume level on"
}
},
"name": "Restore Previous Volume"
}
},
"update_last_called": {
"name": "Update Last Called Sensor",
Expand Down
104 changes: 53 additions & 51 deletions custom_components/alexa_media/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,101 +6,103 @@
"reauth_successful": "Alexa Media Player successfully reauthenticated. Please ignore the \"Aborted\" message from HA."
},
"error": {
"2fa_key_invalid": "Invalid Built-In 2FA key",
"connection_error": "Error connecting; check network and retry",
"identifier_exists": "Email for Alexa URL already registered",
"invalid_credentials": "Invalid credentials",
"invalid_url": "URL is invalid: {message}",
"unable_to_connect_hass_url": "Unable to connect to Home Assistant url. Please check the External Url under Configuration -> General",
"2fa_key_invalid": "Invalid Authenticator App key for Amazon 2SV",
"unable_to_connect_hass_url": "Unable to connect to Home Assistant Local URL. Please check the URL under Settings > System > Network > Home Assistant URL > Local network",
"unknown_error": "Unknown error: {message}"
},
"step": {
"user": {
"data": {
"url": "Amazon region domain (e.g., amazon.co.uk)",
"email": "Email Address",
"password": "Password",
"securitycode": "[%key_id:55616596%]",
"otp_secret": "Amazon 2SV Authenticator App Key",
"hass_url": "Local network URL to access Home Assistant",
"public_url": "Public URL shared with external hosted services",
"include_devices": "Only include these devices (comma separated)",
"exclude_devices": "or Exclude these devices from all (comma separated)",
"scan_interval": "Scheduled polling interval (seconds)",
"queue_delay": "Delay to queue multiple commands together (seconds)",
"extended_entity_discovery": "Include devices connected via Echo",
"debug": "Advanced debugging"
},
"description": "Required *",
"title": "Alexa Media Player - Configuration"
},
"proxy_warning": {
"data": {
"proxy_warning": "Ignore and Continue - I understand that no support for login issues are provided for bypassing this warning."
},
"description": "The HA server cannot connect to the URL provided: {hass_url}.\n> {error}\n\nTo fix this, please confirm your **HA server** can reach {hass_url}. This field is from the External Url under Configuration -> General but you can try your internal url.\n\nIf you are **certain** your client can reach this url, you can bypass this warning.",
"description": "The HA server cannot connect to the URL provided: {hass_url}.\n> {error}\n\nTo fix this, please confirm your browser can reach {hass_url}. This field is from Settings > System > Network > Home Assistant URL.\n\nIf you are **certain** your browser can reach this URL, you can bypass this warning.",
"title": "Alexa Media Player - Unable to Connect to HA URL"
},
"totp_register": {
"data": {
"registered": "OTP from the Built-in 2FA App Key confirmed successfully."
"registered": "Yes, OTP code was verified"
},
"description": "**{email} - alexa.{url}** \nHave you successfully confirmed an OTP from the Built-in 2FA App Key with Amazon? \n >OTP Code {message}",
"description": "**{email} - alexa.{url}** \nHave you verified the OTP code in Amazon 2SV? \n >OTP Code: {message}",
"title": "Alexa Media Player - OTP Confirmation"
},
"user": {
"data": {
"debug": "Advanced debugging",
"email": "Email Address",
"exclude_devices": "Excluded device (comma separated)",
"extended_entity_discovery": "Include devices connected via Echo",
"hass_url": "Url to access Home Assistant",
"include_devices": "Included device (comma separated)",
"otp_secret": "Built-in 2FA App Key (automatically generate 2FA Codes). This is not six digits long.",
"password": "Password",
"queue_delay": "Seconds to wait to queue commands together",
"scan_interval": "Seconds between scans",
"securitycode": "[%key_id:55616596%]",
"url": "Amazon region domain (e.g., amazon.co.uk)"
},
"description": "Please confirm the information below. For legacy configuration, disable `Use Login Proxy method` option.",
"title": "Alexa Media Player - Configuration"
}
}
},
"options": {
"step": {
"init": {
"data": {
"debug": "Advanced debugging",
"exclude_devices": "Excluded device (comma separated)",
"public_url": "Public URL shared with external hosted services",
"include_devices": "Only include these devices (comma separated)",
"exclude_devices": "or Exclude these devices from all (comma separated)",
"scan_interval": "Scheduled polling frequency (seconds)",
"queue_delay": "Delay to queue multiple commands together (seconds)",
"extended_entity_discovery": "Include devices connected via Echo",
"hass_url": "Public URL to access Home Assistant (including trailing '/')",
"include_devices": "Included device (comma separated)",
"public_url": "Public URL to access Home Assistant (including trailing '/')",
"queue_delay": "Seconds to wait to queue commands together",
"scan_interval": "Seconds between scans"
"debug": "Advanced debugging"
},
"description": "Required *",
"title": "Alexa Media Player - Reconfiguration"
}
}
},
"services": {
"clear_history": {
"description": "Clear last entries from Alexa Voice history for each Alexa account.",
"force_logout": {
"name": "Force Logout",
"description": "Force account to logout. Used mainly for debugging.",
"fields": {
"email": {
"description": "Accounts to clear. Empty will clear all.",
"name": "Email address"
},
"entries": {
"description": "Number of entries to clear from 1 to 50. If empty, clear 50.",
"name": "Number of Entries"
"name": "Email address",
"description": "Accounts to clear. Empty will clear all."
}
},
"name": "Clear Amazon Voice History"
}
},
"force_logout": {
"description": "Force account to logout. Used mainly for debugging.",
"restore_volume": {
"name": "Restore Previous Volume",
"description": "Restore previous volume level on Alexa media player device",
"fields": {
"email": {
"description": "Accounts to clear. Empty will clear all.",
"name": "Email address"
"entity_id": {
"name": "Select media player:",
"description": "Entity to restore the previous volume level on"
}
},
"name": "Force Logout"
}
},
"update_last_called": {
"name": "Update Last Called Sensor",
"description": "Forces update of last_called echo device for each Alexa account.",
"fields": {
"email": {
"description": "List of Alexa accounts to update. If empty, will update all known accounts.",
"name": "Email address"
"name": "Email address",
"description": "List of Alexa accounts to update. If empty, will update all known accounts."
}
},
"name": "Update Last Called Sensor"
}
}
},
"issues": {
"deprecated_yaml_configuration": {
"title": "YAML configuration is deprecated",
"description": "YAML configuration of Alexa Media Player is deprecated\nand will be removed in version 4.14.0.\nThere will be no automatic import of this.\nPlease remove it from your configuration, restart Home Assistant and use the UI to configure it instead.\nSettings > Devices & services > Integrations > ADD INTEGRATION"
}
}
}

0 comments on commit c16bac9

Please sign in to comment.