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

Public Member Functions

dict[str, float] __call__ (self, Any data)
 
None __init__ (self, LocationSelectorConfig|None config=None)
 

Static Public Attributes

 CONFIG_SCHEMA
 
 DATA_SCHEMA
 
string selector_type = "location"
 

Detailed Description

Selector for a location.

Definition at line 967 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.LocationSelector.__init__ (   self,
LocationSelectorConfig | None   config = None 
)
Instantiate a selector.

Definition at line 983 of file selector.py.

Member Function Documentation

◆ __call__()

dict[str, float] homeassistant.helpers.selector.LocationSelector.__call__ (   self,
Any  data 
)
Validate the passed selection.

Definition at line 987 of file selector.py.

Member Data Documentation

◆ 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

Definition at line 970 of file selector.py.


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