Constant selector.
Definition at line 514 of file selector.py.
◆ __init__()
◆ __call__()
| Any homeassistant.helpers.selector.ConstantSelector.__call__ |
( |
|
self, |
|
|
Any |
data |
|
) |
| |
Validate the passed selection.
Definition at line 531 of file selector.py.
◆ CONFIG_SCHEMA
| homeassistant.helpers.selector.ConstantSelector.CONFIG_SCHEMA |
|
static |
Initial value:= vol.Schema(
{
vol.Optional("label"): str,
vol.Optional("translation_key"): cv.string,
vol.Required("value"): vol.Any(str, int, bool),
}
)
Definition at line 519 of file selector.py.
◆ selector_type
| string homeassistant.helpers.selector.ConstantSelector.selector_type = "constant" |
|
static |
The documentation for this class was generated from the following file: