mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
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
@ -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…
x
Reference in New Issue
Block a user