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

Classes

class  DiscordFlowHandler
 

Functions

tuple[str|None, nextcord.AppInfo|None] _async_try_connect (str token)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA = vol.Schema({vol.Required(CONF_API_TOKEN): str})
 

Detailed Description

Config flow for Discord integration.

Function Documentation

◆ _async_try_connect()

tuple[str | None, nextcord.AppInfo | None] homeassistant.components.discord.config_flow._async_try_connect ( str  token)
private
Try connecting to Discord.

Definition at line 82 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.discord.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file config_flow.py.

◆ CONFIG_SCHEMA

homeassistant.components.discord.config_flow.CONFIG_SCHEMA = vol.Schema({vol.Required(CONF_API_TOKEN): str})

Definition at line 20 of file config_flow.py.