mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00

* Split august and yale integrations [part 1] (#122253) * merge with dev * Remove unused constant * Remove yale IPv6 workaround (#123409) * Convert yale to use oauth (#123806) Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update yale for switch from pubnub to websockets (#124675) --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
16 lines
547 B
Python
16 lines
547 B
Python
"""application_credentials platform the yale integration."""
|
|
|
|
from homeassistant.components.application_credentials import AuthorizationServer
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
OAUTH2_AUTHORIZE = "https://oauth.aaecosystem.com/authorize"
|
|
OAUTH2_TOKEN = "https://oauth.aaecosystem.com/access_token"
|
|
|
|
|
|
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
|
"""Return authorization server."""
|
|
return AuthorizationServer(
|
|
authorize_url=OAUTH2_AUTHORIZE,
|
|
token_url=OAUTH2_TOKEN,
|
|
)
|