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

Classes

class  AnotherDevice
 
class  BrotherConfigFlow
 
class  InvalidHost
 

Functions

tuple[str, str] validate_input (HomeAssistant hass, dict[str, Any] user_input, str|None expected_mac=None)
 

Variables

 DATA_SCHEMA
 
 RECONFIGURE_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str})
 

Detailed Description

Adds config flow for Brother Printer.

Function Documentation

◆ validate_input()

tuple[str, str] homeassistant.components.brother.config_flow.validate_input ( HomeAssistant  hass,
dict[str, Any]  user_input,
str | None   expected_mac = None 
)
Validate the user input.

Definition at line 29 of file config_flow.py.

Variable Documentation

◆ DATA_SCHEMA

homeassistant.components.brother.config_flow.DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): str,
4  vol.Optional(CONF_TYPE, default="laser"): vol.In(PRINTER_TYPES),
5  }
6 )

Definition at line 20 of file config_flow.py.

◆ RECONFIGURE_SCHEMA

homeassistant.components.brother.config_flow.RECONFIGURE_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str})

Definition at line 26 of file config_flow.py.