Add const module to oauth2 scaffold template (#35438)
* Add const module to oauth2 template * Remove const append * Add domain to const
This commit is contained in:
parent
02a36a9b68
commit
b4142fc7ee
2 changed files with 7 additions and 9 deletions
|
@ -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"
|
||||
""",
|
||||
)
|
||||
|
|
|
@ -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"
|
Loading…
Add table
Reference in a new issue