Selector of a single or list of devices.
Definition at line 695 of file selector.py.
◆ __init__()
| None homeassistant.helpers.selector.DeviceSelector.__init__ |
( |
|
self, |
|
|
DeviceSelectorConfig | None |
config = None |
|
) |
| |
◆ __call__()
| str | list[str] homeassistant.helpers.selector.DeviceSelector.__call__ |
( |
|
self, |
|
|
Any |
data |
|
) |
| |
Validate the passed selection.
Definition at line 714 of file selector.py.
◆ CONFIG_SCHEMA
| homeassistant.helpers.selector.DeviceSelector.CONFIG_SCHEMA |
|
static |
Initial value:= DEVICE_FILTER_SELECTOR_CONFIG_SCHEMA.extend(
{
vol.Optional("multiple", default=False): cv.boolean,
vol.Optional("filter"): vol.All(
cv.ensure_list,
[DEVICE_FILTER_SELECTOR_CONFIG_SCHEMA],
),
},
)
Definition at line 700 of file selector.py.
◆ selector_type
| string homeassistant.helpers.selector.DeviceSelector.selector_type = "device" |
|
static |
The documentation for this class was generated from the following file: