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 authored and GitHub committed 2020-05-10 12:10:09 +02:00
1 parent 02a36a9b68
commit b4142fc7ee
2 files changed
+7 -9

No files matched your search

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