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

Public Member Functions

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

Static Public Attributes

 CONFIG_SCHEMA
 
string selector_type = "file"
 

Detailed Description

Selector of a file.

Definition at line 1435 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.FileSelector.__init__ (   self,
FileSelectorConfig  config 
)
Instantiate a selector.

Definition at line 1447 of file selector.py.

Member Function Documentation

◆ __call__()

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

Definition at line 1451 of file selector.py.

Member Data Documentation

◆ CONFIG_SCHEMA

homeassistant.helpers.selector.FileSelector.CONFIG_SCHEMA
static
Initial value:
= vol.Schema(
{
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
vol.Required("accept"): str,
}
)

Definition at line 1440 of file selector.py.

◆ selector_type

string homeassistant.helpers.selector.FileSelector.selector_type = "file"
static

Definition at line 1438 of file selector.py.


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