Skip to content

Commit

Permalink
Add missing oauth2 error abort reason (home-assistant#48112)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored Mar 19, 2021
1 parent 8a56dbf commit 3742f17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"already_in_progress": "Configuration flow is already in progress",
"no_devices_found": "No devices found on the network",
"webhook_not_internet_accessible": "Your Home Assistant instance needs to be accessible from the internet to receive webhook messages.",
"oauth2_error": "Received invalid token data.",
"oauth2_missing_configuration": "The component is not configured. Please follow the documentation.",
"oauth2_authorize_url_timeout": "Timeout generating authorize URL.",
"oauth2_no_url_available": "No URL available. For information about this error, [check the help section]({docs_url})",
Expand Down
3 changes: 3 additions & 0 deletions script/scaffold/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def _custom_tasks(template, info) -> None:
}
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
"oauth_error": "[%key:common::config_flow::abort::oauth2_error%]",
"missing_configuration": "[%key:common::config_flow::abort::oauth2_missing_configuration%]",
"authorize_url_timeout": "[%key:common::config_flow::abort::oauth2_authorize_url_timeout%]",
"no_url_available": "[%key:common::config_flow::abort::oauth2_no_url_available%]",
Expand Down

0 comments on commit 3742f17

Please sign in to comment.