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

Classes

class  RokuConfigFlow
 
class  RokuOptionsFlowHandler
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
 DATA_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str})
 
string ERROR_CANNOT_CONNECT = "cannot_connect"
 
string ERROR_UNKNOWN = "unknown"
 

Detailed Description

Config flow for Roku.

Function Documentation

◆ validate_input()

dict[str, Any] homeassistant.components.roku.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 33 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 30 of file config_flow.py.

◆ DATA_SCHEMA

homeassistant.components.roku.config_flow.DATA_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str})

Definition at line 25 of file config_flow.py.

◆ ERROR_CANNOT_CONNECT

string homeassistant.components.roku.config_flow.ERROR_CANNOT_CONNECT = "cannot_connect"

Definition at line 27 of file config_flow.py.

◆ ERROR_UNKNOWN

string homeassistant.components.roku.config_flow.ERROR_UNKNOWN = "unknown"

Definition at line 28 of file config_flow.py.