diff --git a/script/scaffold/generate.py b/script/scaffold/generate.py index 93f5db585879..292ae86e3a9a 100644 --- a/script/scaffold/generate.py +++ b/script/scaffold/generate.py @@ -171,12 +171,3 @@ def _custom_tasks(template, info) -> None: }, }, ) - _append( - info.integration_dir / "const.py", - """ - -# TODO Update with your own urls -OAUTH2_AUTHORIZE = "https://www.example.com/auth/authorize" -OAUTH2_TOKEN = "https://www.example.com/auth/token" -""", - ) diff --git a/script/scaffold/templates/config_flow_oauth2/integration/const.py b/script/scaffold/templates/config_flow_oauth2/integration/const.py new file mode 100644 index 000000000000..7255de72d847 --- /dev/null +++ b/script/scaffold/templates/config_flow_oauth2/integration/const.py @@ -0,0 +1,7 @@ +"""Constants for the NEW_NAME integration.""" + +DOMAIN = "NEW_DOMAIN" + +# TODO Update with your own urls +OAUTH2_AUTHORIZE = "https://www.example.com/auth/authorize" +OAUTH2_TOKEN = "https://www.example.com/auth/token"