Add SENZ application credentials platform (#72338)
This commit is contained in:
parent
9763b44357
commit
dc76cce96b
5 changed files with 42 additions and 18 deletions
14
homeassistant/components/senz/application_credentials.py
Normal file
14
homeassistant/components/senz/application_credentials.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""Application credentials platform for senz."""
|
||||
|
||||
from aiosenz import AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT
|
||||
|
||||
from homeassistant.components.application_credentials import AuthorizationServer
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
||||
"""Return authorization server."""
|
||||
return AuthorizationServer(
|
||||
authorize_url=AUTHORIZATION_ENDPOINT,
|
||||
token_url=TOKEN_ENDPOINT,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue