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

Classes

class  CannotConnect
 
class  FlumeConfigFlow
 
class  InvalidAuth
 

Functions

FlumeDeviceList _validate_input (HomeAssistant hass, dict[str, Any] data, bool clear_token_file)
 
dict[str, Any] validate_input (HomeAssistant hass, dict[str, Any] data, bool clear_token_file=False)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 DATA_SCHEMA
 

Detailed Description

Config flow for flume integration.

Function Documentation

◆ _validate_input()

FlumeDeviceList homeassistant.components.flume.config_flow._validate_input ( HomeAssistant  hass,
dict[str, Any]  data,
bool   clear_token_file 
)
private
Validate in the executor.

Definition at line 43 of file config_flow.py.

◆ validate_input()

dict[str, Any] homeassistant.components.flume.config_flow.validate_input ( HomeAssistant  hass,
dict[str, Any]  data,
bool   clear_token_file = False 
)
Validate the user input allows us to connect.

Data has the keys from DATA_SCHEMA with values provided by the user.

Definition at line 64 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 26 of file config_flow.py.

◆ DATA_SCHEMA

homeassistant.components.flume.config_flow.DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_USERNAME): str,
4  vol.Required(CONF_PASSWORD): str,
5  vol.Required(CONF_CLIENT_ID): str,
6  vol.Required(CONF_CLIENT_SECRET): str,
7  }
8 )

Definition at line 33 of file config_flow.py.