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

Classes

class  CannotConnect
 
class  InvalidAuth
 
class  SwitchBeeConfigFlow
 

Functions

str validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for SwitchBee Smart Home integration.

Function Documentation

◆ validate_input()

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

Definition at line 33 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 22 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.switchbee.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_USERNAME): cv.string,
5  vol.Required(CONF_PASSWORD): cv.string,
6  }
7 )

Definition at line 24 of file config_flow.py.