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

Classes

class  MoldIndicatorConfigFlowHandler
 

Functions

dict[str, Any] validate_input (SchemaCommonFlowHandler handler, dict[str, Any] user_input)
 
None ws_start_preview (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Variables

dictionary CONFIG_FLOW
 
 DATA_SCHEMA_CONFIG
 
 DATA_SCHEMA_OPTIONS
 
dictionary OPTIONS_FLOW
 

Detailed Description

Config flow for Mold indicator.

Function Documentation

◆ validate_input()

dict[str, Any] homeassistant.components.mold_indicator.config_flow.validate_input ( SchemaCommonFlowHandler  handler,
dict[str, Any]   user_input 
)
Validate already existing entry.

Definition at line 42 of file config_flow.py.

◆ ws_start_preview()

None homeassistant.components.mold_indicator.config_flow.ws_start_preview ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict[str, Any]  msg 
)
Generate a preview.

Definition at line 123 of file config_flow.py.

Variable Documentation

◆ CONFIG_FLOW

dictionary homeassistant.components.mold_indicator.config_flow.CONFIG_FLOW
Initial value:
1 = {
2  "user": SchemaFlowFormStep(
3  schema=DATA_SCHEMA_CONFIG,
4  validate_user_input=validate_input,
5  preview="mold_indicator",
6  ),
7 }

Definition at line 82 of file config_flow.py.

◆ DATA_SCHEMA_CONFIG

homeassistant.components.mold_indicator.config_flow.DATA_SCHEMA_CONFIG
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_NAME, default=DEFAULT_NAME): TextSelector(),
4  vol.Required(CONF_INDOOR_TEMP): EntitySelector(
5  EntitySelectorConfig(
6  domain=Platform.SENSOR, device_class=SensorDeviceClass.TEMPERATURE
7  )
8  ),
9  vol.Required(CONF_INDOOR_HUMIDITY): EntitySelector(
10  EntitySelectorConfig(
11  domain=Platform.SENSOR, device_class=SensorDeviceClass.HUMIDITY
12  )
13  ),
14  vol.Required(CONF_OUTDOOR_TEMP): EntitySelector(
15  EntitySelectorConfig(
16  domain=Platform.SENSOR, device_class=SensorDeviceClass.TEMPERATURE
17  )
18  ),
19  }
20 ).extend(DATA_SCHEMA_OPTIONS.schema)

Definition at line 60 of file config_flow.py.

◆ DATA_SCHEMA_OPTIONS

homeassistant.components.mold_indicator.config_flow.DATA_SCHEMA_OPTIONS
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_CALIBRATION_FACTOR): NumberSelector(
4  NumberSelectorConfig(step=0.1, mode=NumberSelectorMode.BOX)
5  )
6  }
7 )

Definition at line 52 of file config_flow.py.

◆ OPTIONS_FLOW

dictionary homeassistant.components.mold_indicator.config_flow.OPTIONS_FLOW
Initial value:
1 = {
2  "init": SchemaFlowFormStep(
3  DATA_SCHEMA_OPTIONS,
4  validate_user_input=validate_input,
5  preview="mold_indicator",
6  )
7 }

Definition at line 89 of file config_flow.py.