Functions | |
| bool | __eq__ (self, object other) |
| None | __init__ (self, Mapping[str, Any]|None config=None) |
| int | _entity_feature_flag (str domain, str enum_name, str feature_name) |
| type[Selector] | _get_selector_class (Any config) |
| int | _validate_supported_feature (str supported_feature) |
| int | _validate_supported_features (int|list[str] supported_features) |
| Selector | selector (Any config) |
| dict[str, dict[str, _T]] | serialize (self) |
| dict | validate_selector (Any config) |
| Any | validate_slider (Any data) |
Variables | |
| config | |
| DEVICE_FILTER_SELECTOR_CONFIG_SCHEMA | |
| ENTITY_FILTER_SELECTOR_CONFIG_SCHEMA | |
| select_option | |
| selector_type | |
Selectors for Home Assistant.
| bool homeassistant.helpers.selector.__eq__ | ( | self, | |
| object | other | ||
| ) |
Check equality.
Definition at line 78 of file selector.py.
| None homeassistant.helpers.selector.__init__ | ( | self, | |
| Mapping[str, Any] | None | config = None |
||
| ) |
|
private |
Return a cached lookup of an entity feature enum. This will import a module from disk and is run from an executor when loading the services schema files.
Definition at line 91 of file selector.py.
|
private |
Get selector class type.
Definition at line 25 of file selector.py.
|
private |
Validate a supported feature and resolve an enum string to its value.
Definition at line 103 of file selector.py.
|
private |
Validate a supported feature and resolve an enum string to its value.
Definition at line 120 of file selector.py.
| Selector homeassistant.helpers.selector.selector | ( | Any | config | ) |
Instantiate a selector.
Definition at line 41 of file selector.py.
| dict[str, dict[str, _T]] homeassistant.helpers.selector.serialize | ( | self | ) |
Serialize Selector for voluptuous_serialize.
Definition at line 85 of file selector.py.
| dict homeassistant.helpers.selector.validate_selector | ( | Any | config | ) |
Validate a selector.
Definition at line 49 of file selector.py.
| Any homeassistant.helpers.selector.validate_slider | ( | Any | data | ) |
Validate configuration.
Definition at line 1043 of file selector.py.
| homeassistant.helpers.selector.config |
Definition at line 76 of file selector.py.
| homeassistant.helpers.selector.DEVICE_FILTER_SELECTOR_CONFIG_SCHEMA |
Definition at line 159 of file selector.py.
| homeassistant.helpers.selector.ENTITY_FILTER_SELECTOR_CONFIG_SCHEMA |
Definition at line 134 of file selector.py.
| homeassistant.helpers.selector.select_option |
Definition at line 1117 of file selector.py.
| homeassistant.helpers.selector.selector_type |
Definition at line 83 of file selector.py.