mirror of https://github.com/home-assistant/core
23 lines
478 B
Python
23 lines
478 B
Python
"""Config flow for Home Connect."""
|
|
|
|
import logging
|
|
|
|
from homeassistant.helpers import config_entry_oauth2_flow
|
|
|
|
from .const import DOMAIN
|
|
|
|
|
|
class OAuth2FlowHandler(
|
|
config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
|
|
):
|
|
"""Config flow to handle Home Connect OAuth2 authentication."""
|
|
|
|
DOMAIN = DOMAIN
|
|
|
|
MINOR_VERSION = 2
|
|
|
|
@property
|
|
def logger(self) -> logging.Logger:
|
|
"""Return logger."""
|
|
return logging.getLogger(__name__)
|