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

Classes

class  ConfigFlowHandler
 

Variables

 _PORT_SELECTOR
 
 _SCHEMA
 

Detailed Description

Config flow for APCUPSd integration.

Variable Documentation

◆ _PORT_SELECTOR

homeassistant.components.apcupsd.config_flow._PORT_SELECTOR
private
Initial value:
1 = vol.All(
2  selector.NumberSelector(
3  selector.NumberSelectorConfig(
4  min=1, max=65535, mode=selector.NumberSelectorMode.BOX
5  ),
6  ),
7  vol.Coerce(int),
8 )

Definition at line 19 of file config_flow.py.

◆ _SCHEMA

homeassistant.components.apcupsd.config_flow._SCHEMA
private
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST, default="localhost"): cv.string,
4  vol.Required(CONF_PORT, default=3551): _PORT_SELECTOR,
5  }
6 )

Definition at line 28 of file config_flow.py.