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
3
from
homeassistant.components.application_credentials
import
(
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
14
async
def
async_get_auth_implementation
(
15
hass: HomeAssistant, auth_domain: str, credential: ClientCredential
16
) -> config_entry_oauth2_flow.AbstractOAuth2Implementation:
17
"""Return custom auth implementation."""
18
return
LyricLocalOAuth2Implementation
(
19
hass,
20
auth_domain,
21
credential,
22
AuthorizationServer
(
23
authorize_url=OAUTH2_AUTHORIZE,
24
token_url=OAUTH2_TOKEN,
25
),
26
)
homeassistant.components.application_credentials.AuthorizationServer
Definition:
__init__.py:75
homeassistant.components.lyric.api.LyricLocalOAuth2Implementation
Definition:
api.py:46
homeassistant.components.application_credentials
Definition:
__init__.py:1
homeassistant.components.lyric.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:16
homeassistant.core
Definition:
core.py:1
homeassistant.helpers
Definition:
__init__.py:1
core
homeassistant
components
lyric
application_credentials.py
Generated by
1.9.1