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

Classes

class  SwitchAsXConfigFlowHandler
 

Variables

dictionary CONFIG_FLOW
 
dictionary OPTIONS_FLOW
 
list TARGET_DOMAIN_OPTIONS
 

Detailed Description

Config flow for Switch as X integration.

Variable Documentation

◆ CONFIG_FLOW

dictionary homeassistant.components.switch_as_x.config_flow.CONFIG_FLOW
Initial value:
1 = {
2  "user": SchemaFlowFormStep(
3  vol.Schema(
4  {
5  vol.Required(CONF_ENTITY_ID): selector.EntitySelector(
6  selector.EntitySelectorConfig(domain=Platform.SWITCH),
7  ),
8  vol.Optional(CONF_INVERT, default=False): selector.BooleanSelector(),
9  vol.Required(CONF_TARGET_DOMAIN): selector.SelectSelector(
10  selector.SelectSelectorConfig(
11  options=TARGET_DOMAIN_OPTIONS, translation_key="target_domain"
12  ),
13  ),
14  }
15  )
16  )
17 }

Definition at line 29 of file config_flow.py.

◆ OPTIONS_FLOW

dictionary homeassistant.components.switch_as_x.config_flow.OPTIONS_FLOW
Initial value:
1 = {
2  "init": SchemaFlowFormStep(
3  vol.Schema({vol.Required(CONF_INVERT): selector.BooleanSelector()})
4  ),
5 }

Definition at line 47 of file config_flow.py.

◆ TARGET_DOMAIN_OPTIONS

list homeassistant.components.switch_as_x.config_flow.TARGET_DOMAIN_OPTIONS
Initial value:
1 = [
2  Platform.COVER,
3  Platform.FAN,
4  Platform.LIGHT,
5  Platform.LOCK,
6  Platform.SIREN,
7  Platform.VALVE,
8 ]

Definition at line 20 of file config_flow.py.