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

Public Member Functions

str __call__ (self, Any data)
 
None __init__ (self, AttributeSelectorConfig config)
 

Static Public Attributes

 CONFIG_SCHEMA
 
string selector_type = "attribute"
 

Detailed Description

Selector for an entity attribute.

Definition at line 306 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.AttributeSelector.__init__ (   self,
AttributeSelectorConfig  config 
)
Instantiate a selector.

Definition at line 320 of file selector.py.

Member Function Documentation

◆ __call__()

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

Definition at line 324 of file selector.py.

Member Data Documentation

◆ CONFIG_SCHEMA

homeassistant.helpers.selector.AttributeSelector.CONFIG_SCHEMA
static
Initial value:
= vol.Schema(
{
vol.Required("entity_id"): cv.entity_id,
# hide_attributes is used to hide attributes in the frontend.
# A hidden attribute can still be provided manually.
vol.Optional("hide_attributes"): [str],
}
)

Definition at line 311 of file selector.py.

◆ selector_type

string homeassistant.helpers.selector.AttributeSelector.selector_type = "attribute"
static

Definition at line 309 of file selector.py.


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