Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.notion.config_flow Namespace Reference

Classes

class  CredentialsValidationResult
 
class  NotionFlowHandler
 

Functions

CredentialsValidationResult async_validate_credentials (HomeAssistant hass, str username, str password)
 

Variables

 AUTH_SCHEMA
 
 REAUTH_SCHEMA
 

Detailed Description

Config flow to configure the Notion integration.

Function Documentation

◆ async_validate_credentials()

CredentialsValidationResult homeassistant.components.notion.config_flow.async_validate_credentials ( HomeAssistant  hass,
str  username,
str   password 
)
Validate a Notion username and password.

Definition at line 41 of file config_flow.py.

Variable Documentation

◆ AUTH_SCHEMA

homeassistant.components.notion.config_flow.AUTH_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_USERNAME): str,
4  vol.Required(CONF_PASSWORD): str,
5  }
6 )

Definition at line 19 of file config_flow.py.

◆ REAUTH_SCHEMA

homeassistant.components.notion.config_flow.REAUTH_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_PASSWORD): str,
4  }
5 )

Definition at line 25 of file config_flow.py.