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:
Martin Hjelmare 2020-05-10 12:10:09 +02:00 committed by GitHub
parent 02a36a9b68
commit b4142fc7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -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"
""",
)

View file

@ -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"