Add static example for AuthorizationServer

This commit is contained in:
Allen Porter 2022-04-03 17:19:23 +00:00
parent c701c3f9cb
commit 0cc5a85c13

View File

@ -23,6 +23,10 @@ async def async_get_authorization_server(
self, hass: HomeAssistant
) -> AuthorizationServer:
"""Return authorization server."""
return AuthorizationServer(
authorize_url="https://example.com/auth",
token_url="https://example.com/oauth2/v4/token"
)
# Optional: Only implement if needed to provide a credential from configuration.yaml