Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.selector.LabelSelector Class Reference
Inheritance diagram for homeassistant.helpers.selector.LabelSelector:
[legend]
Collaboration diagram for homeassistant.helpers.selector.LabelSelector:
[legend]

Public Member Functions

str|list[str] __call__ (self, Any data)
 
None __init__ (self, LabelSelectorConfig|None config=None)
 

Static Public Attributes

 CONFIG_SCHEMA
 
string selector_type = "label"
 

Detailed Description

Selector of a single or list of labels.

Definition at line 900 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.LabelSelector.__init__ (   self,
LabelSelectorConfig | None   config = None 
)
Instantiate a selector.

Definition at line 911 of file selector.py.

Member Function Documentation

◆ __call__()

str | list[str] homeassistant.helpers.selector.LabelSelector.__call__ (   self,
Any  data 
)
Validate the passed selection.

Definition at line 915 of file selector.py.

Member Data Documentation

◆ CONFIG_SCHEMA

homeassistant.helpers.selector.LabelSelector.CONFIG_SCHEMA
static
Initial value:
= vol.Schema(
{
vol.Optional("multiple", default=False): cv.boolean,
}
)

Definition at line 905 of file selector.py.

◆ selector_type

string homeassistant.helpers.selector.LabelSelector.selector_type = "label"
static

Definition at line 903 of file selector.py.


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