Home Assistant Unofficial Reference
2024.12.1
application_credentials.py
Go to the documentation of this file.
1
"""application_credentials platform the yale integration."""
2
3
from
homeassistant.components.application_credentials
import
AuthorizationServer
4
from
homeassistant.core
import
HomeAssistant
5
6
OAUTH2_AUTHORIZE =
"https://oauth.aaecosystem.com/authorize"
7
OAUTH2_TOKEN =
"https://oauth.aaecosystem.com/access_token"
8
9
10
async
def
async_get_authorization_server
(hass: HomeAssistant) -> AuthorizationServer:
11
"""Return authorization server."""
12
return
AuthorizationServer
(
13
authorize_url=OAUTH2_AUTHORIZE,
14
token_url=OAUTH2_TOKEN,
15
)
homeassistant.components.application_credentials.AuthorizationServer
Definition:
__init__.py:75
homeassistant.components.application_credentials
Definition:
__init__.py:1
homeassistant.components.yale.application_credentials.async_get_authorization_server
AuthorizationServer async_get_authorization_server(HomeAssistant hass)
Definition:
application_credentials.py:10
homeassistant.core
Definition:
core.py:1
core
homeassistant
components
yale
application_credentials.py
Generated by
1.9.1