1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-02 05:07:52 +00:00

15 lines
575 B
Python

"""application_credentials platform for Geocaching."""
from homeassistant.components.application_credentials import ClientCredential
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_entry_oauth2_flow
from .oauth import GeocachingOAuth2Implementation
async def async_get_auth_implementation(
hass: HomeAssistant, auth_domain: str, credential: ClientCredential
) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
"""Return auth implementation."""
return GeocachingOAuth2Implementation(hass, auth_domain, credential)