Home Assistant Unofficial Reference 2024.12.1
application_credentials.py
Go to the documentation of this file.
1 """Application credentials platform for the Honeywell Lyric integration."""
2 
4  AuthorizationServer,
5  ClientCredential,
6 )
7 from homeassistant.core import HomeAssistant
8 from homeassistant.helpers import config_entry_oauth2_flow
9 
10 from .api import LyricLocalOAuth2Implementation
11 from .const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN
12 
13 
15  hass: HomeAssistant, auth_domain: str, credential: ClientCredential
16 ) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
17  """Return custom auth implementation."""
19  hass,
20  auth_domain,
21  credential,
23  authorize_url=OAUTH2_AUTHORIZE,
24  token_url=OAUTH2_TOKEN,
25  ),
26  )
config_entry_oauth2_flow.AbstractOAuth2Implementation async_get_auth_implementation(HomeAssistant hass, str auth_domain, ClientCredential credential)