From 3742f175ad327a63684789531ee4a4bbad655123 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Fri, 19 Mar 2021 14:27:26 +0100 Subject: [PATCH] Add missing oauth2 error abort reason (#48112) --- homeassistant/strings.json | 1 + script/scaffold/generate.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/homeassistant/strings.json b/homeassistant/strings.json index b8e7dee2996..31693c5bba1 100644 --- a/homeassistant/strings.json +++ b/homeassistant/strings.json @@ -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})", diff --git a/script/scaffold/generate.py b/script/scaffold/generate.py index 4cf1624eb4b..10de17e45ee 100644 --- a/script/scaffold/generate.py +++ b/script/scaffold/generate.py @@ -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%]",