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

Public Member Functions

Any __call__ (self, Any data)
 
None __init__ (self, CountrySelectorConfig|None config=None)
 

Static Public Attributes

 CONFIG_SCHEMA
 
string selector_type = "country"
 

Detailed Description

Selector for a single-choice country select.

Definition at line 616 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.CountrySelector.__init__ (   self,
CountrySelectorConfig | None   config = None 
)
Instantiate a selector.

Definition at line 628 of file selector.py.

Member Function Documentation

◆ __call__()

Any homeassistant.helpers.selector.CountrySelector.__call__ (   self,
Any  data 
)
Validate the passed selection.

Definition at line 632 of file selector.py.

Member Data Documentation

◆ CONFIG_SCHEMA

homeassistant.helpers.selector.CountrySelector.CONFIG_SCHEMA
static
Initial value:
= vol.Schema(
{
vol.Optional("countries"): [str],
vol.Optional("no_sort", default=False): cv.boolean,
}
)

Definition at line 621 of file selector.py.

◆ selector_type

string homeassistant.helpers.selector.CountrySelector.selector_type = "country"
static

Definition at line 619 of file selector.py.


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