mirror of https://github.com/home-assistant/core
19 lines
605 B
Python
19 lines
605 B
Python
"""Application Credentials platform the Tesla Fleet integration."""
|
|
|
|
from homeassistant.components.application_credentials import ClientCredential
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import config_entry_oauth2_flow
|
|
|
|
from .oauth import TeslaUserImplementation
|
|
|
|
|
|
async def async_get_auth_implementation(
|
|
hass: HomeAssistant, auth_domain: str, credential: ClientCredential
|
|
) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
|
|
"""Return auth implementation."""
|
|
return TeslaUserImplementation(
|
|
hass,
|
|
auth_domain,
|
|
credential,
|
|
)
|