Selector for a duration.
Definition at line 733 of file selector.py.
◆ __init__()
| None homeassistant.helpers.selector.DurationSelector.__init__ |
( |
|
self, |
|
|
DurationSelectorConfig | None |
config = None |
|
) |
| |
◆ __call__()
| dict[str, float] homeassistant.helpers.selector.DurationSelector.__call__ |
( |
|
self, |
|
|
Any |
data |
|
) |
| |
Validate the passed selection.
Definition at line 754 of file selector.py.
◆ CONFIG_SCHEMA
| homeassistant.helpers.selector.DurationSelector.CONFIG_SCHEMA |
|
static |
Initial value:= vol.Schema(
{
vol.Optional("enable_day"): cv.boolean,
vol.Optional("enable_millisecond"): cv.boolean,
vol.Optional("allow_negative"): cv.boolean,
}
)
Definition at line 738 of file selector.py.
◆ selector_type
| string homeassistant.helpers.selector.DurationSelector.selector_type = "duration" |
|
static |
The documentation for this class was generated from the following file: