From b228ffc761e3f73edba2965420526079d5f763fb Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Fri, 30 Oct 2020 01:51:22 -0700 Subject: [PATCH] Add missing config flow translation key to script scaffold (#42621) Add missing config key for no_url_available when generating new oauth2 config entry based integrations. This was found in issue #42423 where the nest integration was missing a string when a user had a misconfiguration. --- script/scaffold/generate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/script/scaffold/generate.py b/script/scaffold/generate.py index 4c50b8971fb..4cf1624eb4b 100644 --- a/script/scaffold/generate.py +++ b/script/scaffold/generate.py @@ -165,6 +165,7 @@ def _custom_tasks(template, info) -> None: "abort": { "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%]", }, "create_entry": { "default": "[%key:common::config_flow::create_entry::authenticated%]"