13 lines
		
	
	
		
			468 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			468 B
		
	
	
	
		
			Python
		
	
	
"""Application credentials platform for spotify."""
 | 
						|
 | 
						|
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="https://accounts.spotify.com/authorize",
 | 
						|
        token_url="https://accounts.spotify.com/api/token",
 | 
						|
    )
 |