|
| None | _change_listener (self, str change_type, str item_id, dict[str, Any] data) |
| |
| str | _get_suggested_id (self, dict[str, Any] info) |
| |
| int | _move_data (self, dict[str, Any] data) |
| |
| dict[str, Any] | _process_create_data (self, dict[str, Any] data) |
| |
| dict[str, Any] | _update_data (self, dict[str, Any] item, dict[str, Any] update_data) |
| |
Image collection stored in storage.
Definition at line 64 of file __init__.py.
◆ __init__()
| None homeassistant.components.image_upload.ImageStorageCollection.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
pathlib.Path |
image_dir |
|
) |
| |
Initialize media storage collection.
Definition at line 70 of file __init__.py.
◆ _change_listener()
| None homeassistant.components.image_upload.ImageStorageCollection._change_listener |
( |
|
self, |
|
|
str |
change_type, |
|
|
str |
item_id, |
|
|
dict[str, Any] |
data |
|
) |
| |
|
private |
◆ _get_suggested_id()
| str homeassistant.components.image_upload.ImageStorageCollection._get_suggested_id |
( |
|
self, |
|
|
dict[str, Any] |
info |
|
) |
| |
|
private |
Suggest an ID based on the config.
Definition at line 130 of file __init__.py.
◆ _move_data()
| int homeassistant.components.image_upload.ImageStorageCollection._move_data |
( |
|
self, |
|
|
dict[str, Any] |
data |
|
) |
| |
|
private |
◆ _process_create_data()
| dict[str, Any] homeassistant.components.image_upload.ImageStorageCollection._process_create_data |
( |
|
self, |
|
|
dict[str, Any] |
data |
|
) |
| |
|
private |
Validate the config is valid.
Definition at line 78 of file __init__.py.
◆ _update_data()
| dict[str, Any] homeassistant.components.image_upload.ImageStorageCollection._update_data |
( |
|
self, |
|
|
dict[str, Any] |
item, |
|
|
dict[str, Any] |
update_data |
|
) |
| |
|
private |
Return a new updated data object.
Definition at line 134 of file __init__.py.
◆ CREATE_SCHEMA
| homeassistant.components.image_upload.ImageStorageCollection.CREATE_SCHEMA = vol.Schema(CREATE_FIELDS) |
|
static |
◆ image_dir
| homeassistant.components.image_upload.ImageStorageCollection.image_dir |
◆ UPDATE_SCHEMA
| homeassistant.components.image_upload.ImageStorageCollection.UPDATE_SCHEMA = vol.Schema(UPDATE_FIELDS) |
|
static |
The documentation for this class was generated from the following file: