Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.knx.schema.SelectSchema Class Reference
Inheritance diagram for homeassistant.components.knx.schema.SelectSchema:
[legend]
Collaboration diagram for homeassistant.components.knx.schema.SelectSchema:
[legend]

Static Public Attributes

string CONF_OPTION = "option"
 
string CONF_OPTIONS = "options"
 
string DEFAULT_NAME = "KNX Select"
 
 ENTITY_SCHEMA
 
 PLATFORM = Platform.SELECT
 

Additional Inherited Members

- Public Member Functions inherited from homeassistant.components.knx.schema.KNXPlatformSchema
dict[vol.Optional, vol.All] platform_node (cls)
 

Detailed Description

Voluptuous schema for KNX selects.

Definition at line 824 of file schema.py.

Member Data Documentation

◆ CONF_OPTION

string homeassistant.components.knx.schema.SelectSchema.CONF_OPTION = "option"
static

Definition at line 829 of file schema.py.

◆ CONF_OPTIONS

string homeassistant.components.knx.schema.SelectSchema.CONF_OPTIONS = "options"
static

Definition at line 830 of file schema.py.

◆ DEFAULT_NAME

string homeassistant.components.knx.schema.SelectSchema.DEFAULT_NAME = "KNX Select"
static

Definition at line 831 of file schema.py.

◆ ENTITY_SCHEMA

homeassistant.components.knx.schema.SelectSchema.ENTITY_SCHEMA
static
Initial value:
= vol.All(
vol.Schema(
{
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_SYNC_STATE, default=True): sync_state_validator,
vol.Optional(CONF_RESPOND_TO_READ, default=False): cv.boolean,
vol.Required(CONF_PAYLOAD_LENGTH): vol.All(
vol.Coerce(int), vol.Range(min=0, max=14)
),
vol.Required(CONF_OPTIONS): [
{
vol.Required(CONF_OPTION): vol.Coerce(str),
vol.Required(CONF_PAYLOAD): cv.positive_int,
}
],
vol.Required(KNX_ADDRESS): ga_list_validator,
vol.Optional(CONF_STATE_ADDRESS): ga_list_validator,
vol.Optional(CONF_ENTITY_CATEGORY): ENTITY_CATEGORIES_SCHEMA,
}
),
select_options_sub_validator,
)

Definition at line 833 of file schema.py.

◆ PLATFORM

homeassistant.components.knx.schema.SelectSchema.PLATFORM = Platform.SELECT
static

Definition at line 827 of file schema.py.


The documentation for this class was generated from the following file: