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

Classes

class  MastodonConfigFlow
 

Functions

str base_url_from_url (str url)
 

Variables

 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for Mastodon.

Function Documentation

◆ base_url_from_url()

str homeassistant.components.mastodon.config_flow.base_url_from_url ( str  url)
Return the base url from a url.

Definition at line 46 of file config_flow.py.

Variable Documentation

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.mastodon.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(
4  CONF_BASE_URL,
5  ): TextSelector(TextSelectorConfig(type=TextSelectorType.URL)),
6  vol.Required(
7  CONF_CLIENT_ID,
8  ): TextSelector(TextSelectorConfig(type=TextSelectorType.PASSWORD)),
9  vol.Required(
10  CONF_CLIENT_SECRET,
11  ): TextSelector(TextSelectorConfig(type=TextSelectorType.PASSWORD)),
12  vol.Required(
13  CONF_ACCESS_TOKEN,
14  ): TextSelector(TextSelectorConfig(type=TextSelectorType.PASSWORD)),
15  }
16 )

Definition at line 28 of file config_flow.py.