Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """application_credentials platform for Geocaching."""
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 GeocachingOAuth2Implementation
8 
9 
11  hass: HomeAssistant, auth_domain: str, credential: ClientCredential
12 ) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
13  """Return auth implementation."""
14  return GeocachingOAuth2Implementation(hass, auth_domain, credential)
config_entry_oauth2_flow.AbstractOAuth2Implementation async_get_auth_implementation(HomeAssistant hass, str auth_domain, ClientCredential credential)