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
10
async
def
async_get_auth_implementation
(
11
hass: HomeAssistant, auth_domain: str, credential: ClientCredential
12
) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
13
"""Return auth implementation."""
14
return
TeslaUserImplementation
(
15
hass,
16
auth_domain,
17
credential,
18
)
homeassistant.components.tesla_fleet.oauth.TeslaUserImplementation
Definition:
oauth.py:69
homeassistant.components.application_credentials
Definition:
__init__.py:1
homeassistant.components.tesla_fleet.application_credentials.async_get_auth_implementation
config_entry_oauth2_flow.AbstractOAuth2Implementation async_get_auth_implementation(HomeAssistant hass, str auth_domain, ClientCredential credential)
Definition:
application_credentials.py:12
homeassistant.core
Definition:
core.py:1
homeassistant.helpers
Definition:
__init__.py:1
core
homeassistant
components
tesla_fleet
application_credentials.py
Generated by
1.9.1