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

Classes

class  ConfigFlowHandler
 

Variables

dictionary CONFIG_FLOW
 
dictionary CONFIG_SCHEMA
 
dictionary OPTIONS_FLOW
 
dictionary OPTIONS_SCHEMA
 
dictionary PRESETS_SCHEMA
 

Detailed Description

Config flow for Generic hygrostat.

Variable Documentation

◆ CONFIG_FLOW

dictionary homeassistant.components.generic_thermostat.config_flow.CONFIG_FLOW
Initial value:
1 = {
2  "user": SchemaFlowFormStep(vol.Schema(CONFIG_SCHEMA), next_step="presets"),
3  "presets": SchemaFlowFormStep(vol.Schema(PRESETS_SCHEMA)),
4 }

Definition at line 77 of file config_flow.py.

◆ CONFIG_SCHEMA

dictionary homeassistant.components.generic_thermostat.config_flow.CONFIG_SCHEMA
Initial value:
1 = {
2  vol.Required(CONF_NAME): selector.TextSelector(),
3  **OPTIONS_SCHEMA,
4 }

Definition at line 71 of file config_flow.py.

◆ OPTIONS_FLOW

dictionary homeassistant.components.generic_thermostat.config_flow.OPTIONS_FLOW
Initial value:
1 = {
2  "init": SchemaFlowFormStep(vol.Schema(OPTIONS_SCHEMA), next_step="presets"),
3  "presets": SchemaFlowFormStep(vol.Schema(PRESETS_SCHEMA)),
4 }

Definition at line 82 of file config_flow.py.

◆ OPTIONS_SCHEMA

dictionary homeassistant.components.generic_thermostat.config_flow.OPTIONS_SCHEMA
Initial value:
1 = {
2  vol.Required(CONF_AC_MODE): selector.BooleanSelector(
3  selector.BooleanSelectorConfig(),
4  ),
5  vol.Required(CONF_SENSOR): selector.EntitySelector(
6  selector.EntitySelectorConfig(
7  domain=SENSOR_DOMAIN, device_class=SensorDeviceClass.TEMPERATURE
8  )
9  ),
10  vol.Required(CONF_HEATER): selector.EntitySelector(
11  selector.EntitySelectorConfig(domain=[fan.DOMAIN, switch.DOMAIN])
12  ),
13  vol.Required(
14  CONF_COLD_TOLERANCE, default=DEFAULT_TOLERANCE
15  ): selector.NumberSelector(
16  selector.NumberSelectorConfig(
17  mode=selector.NumberSelectorMode.BOX, unit_of_measurement=DEGREE, step=0.1
18  )
19  ),
20  vol.Required(
21  CONF_HOT_TOLERANCE, default=DEFAULT_TOLERANCE
22  ): selector.NumberSelector(
23  selector.NumberSelectorConfig(
24  mode=selector.NumberSelectorMode.BOX, unit_of_measurement=DEGREE, step=0.1
25  )
26  ),
27  vol.Optional(CONF_MIN_DUR): selector.DurationSelector(
28  selector.DurationSelectorConfig(allow_negative=False)
29  ),
30 }

Definition at line 31 of file config_flow.py.

◆ PRESETS_SCHEMA

dictionary homeassistant.components.generic_thermostat.config_flow.PRESETS_SCHEMA
Initial value:
1 = {
2  vol.Optional(v): selector.NumberSelector(
3  selector.NumberSelectorConfig(
4  mode=selector.NumberSelectorMode.BOX, unit_of_measurement=DEGREE, step=0.1
5  )
6  )
7  for v in CONF_PRESETS.values()
8 }

Definition at line 62 of file config_flow.py.