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

Classes

class  FibaroConfigFlow
 

Functions

str _normalize_url (str url)
 
dict[str, Any] _validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for Fibaro integration.

Function Documentation

◆ _normalize_url()

str homeassistant.components.fibaro.config_flow._normalize_url ( str  url)
private
Try to fix errors in the entered url.

We know that the url should be in the format http://<HOST>/api/

Definition at line 49 of file config_flow.py.

◆ _validate_input()

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

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

Definition at line 31 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 19 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.fibaro.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_URL): str,
4  vol.Required(CONF_USERNAME): str,
5  vol.Required(CONF_PASSWORD): str,
6  vol.Optional(CONF_IMPORT_PLUGINS, default=False): bool,
7  }
8 )

Definition at line 21 of file config_flow.py.