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

Classes

class  OneWireFlowHandler
 
class  OnewireOptionsFlowHandler
 

Functions

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

Variables

 DATA_SCHEMA
 

Detailed Description

Config flow for 1-Wire component.

Function Documentation

◆ validate_input()

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

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

Definition at line 42 of file config_flow.py.

Variable Documentation

◆ DATA_SCHEMA

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

Definition at line 34 of file config_flow.py.