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

Classes

class  MadVRConfigFlow
 

Functions

None close_test_connection (Madvr madvr_client)
 
str test_connection (HomeAssistant hass, str host, int port)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int RETRY_INTERVAL = 1
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for the integration.

Function Documentation

◆ close_test_connection()

None homeassistant.components.madvr.config_flow.close_test_connection ( Madvr  madvr_client)
Close the test connection.

Definition at line 134 of file config_flow.py.

◆ test_connection()

str homeassistant.components.madvr.config_flow.test_connection ( HomeAssistant  hass,
str  host,
int  port 
)
Test if we can connect to the device and grab the mac.

Definition at line 100 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 22 of file config_flow.py.

◆ RETRY_INTERVAL

int homeassistant.components.madvr.config_flow.RETRY_INTERVAL = 1

Definition at line 31 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.madvr.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): str,
4  vol.Required(CONF_PORT, default=DEFAULT_PORT): int,
5  }
6 )

Definition at line 24 of file config_flow.py.