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

Classes

class  PhilipsJSConfigFlow
 

Functions

PhilipsTV _validate_input (HomeAssistant hass, str host, int api_version)
 

Variables

dictionary OPTIONS_FLOW
 
 OPTIONS_SCHEMA
 
 USER_SCHEMA
 

Detailed Description

Config flow for Philips TV integration.

Function Documentation

◆ _validate_input()

PhilipsTV homeassistant.components.philips_js.config_flow._validate_input ( HomeAssistant  hass,
str  host,
int   api_version 
)
private
Validate the user input allows us to connect.

Definition at line 57 of file config_flow.py.

Variable Documentation

◆ OPTIONS_FLOW

dictionary homeassistant.components.philips_js.config_flow.OPTIONS_FLOW
Initial value:
1 = {
2  "init": SchemaFlowFormStep(OPTIONS_SCHEMA),
3 }

Definition at line 52 of file config_flow.py.

◆ OPTIONS_SCHEMA

homeassistant.components.philips_js.config_flow.OPTIONS_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_ALLOW_NOTIFY, default=False): selector.BooleanSelector(),
4  }
5 )

Definition at line 47 of file config_flow.py.

◆ USER_SCHEMA

homeassistant.components.philips_js.config_flow.USER_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(
4  CONF_HOST,
5  ): str,
6  vol.Required(
7  CONF_API_VERSION,
8  default=1,
9  ): vol.In([1, 5, 6]),
10  }
11 )

Definition at line 35 of file config_flow.py.