Selector for a location.
Definition at line 967 of file selector.py.
◆ __init__()
| None homeassistant.helpers.selector.LocationSelector.__init__ |
( |
|
self, |
|
|
LocationSelectorConfig | None |
config = None |
|
) |
| |
◆ __call__()
| dict[str, float] homeassistant.helpers.selector.LocationSelector.__call__ |
( |
|
self, |
|
|
Any |
data |
|
) |
| |
Validate the passed selection.
Definition at line 987 of file selector.py.
◆ CONFIG_SCHEMA
| homeassistant.helpers.selector.LocationSelector.CONFIG_SCHEMA |
|
static |
Initial value:= vol.Schema(
{vol.Optional("radius"): bool, vol.Optional("icon"): str}
)
Definition at line 972 of file selector.py.
◆ DATA_SCHEMA
| homeassistant.helpers.selector.LocationSelector.DATA_SCHEMA |
|
static |
Initial value:= vol.Schema(
{
vol.Required("latitude"): vol.Coerce(float),
vol.Required("longitude"): vol.Coerce(float),
vol.Optional("radius"): vol.Coerce(float),
}
)
Definition at line 975 of file selector.py.
◆ selector_type
| string homeassistant.helpers.selector.LocationSelector.selector_type = "location" |
|
static |
The documentation for this class was generated from the following file: