Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """Application Credentials platform the Tesla Fleet integration."""
2 
3 from homeassistant.components.application_credentials import ClientCredential
4 from homeassistant.core import HomeAssistant
5 from homeassistant.helpers import config_entry_oauth2_flow
6 
7 from .oauth import TeslaUserImplementation
8 
9 
11  hass: HomeAssistant, auth_domain: str, credential: ClientCredential
12 ) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
13  """Return auth implementation."""
15  hass,
16  auth_domain,
17  credential,
18  )
config_entry_oauth2_flow.AbstractOAuth2Implementation async_get_auth_implementation(HomeAssistant hass, str auth_domain, ClientCredential credential)