Collection to store resources.
Definition at line 51 of file resources.py.
◆ __init__()
| None homeassistant.components.lovelace.resources.ResourceStorageCollection.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
LovelaceConfig |
ll_config |
|
) |
| |
Initialize the storage collection.
Definition at line 58 of file resources.py.
◆ _async_load_data()
| collection.SerializedStorageCollection | None homeassistant.components.lovelace.resources.ResourceStorageCollection._async_load_data |
( |
|
self | ) |
|
|
private |
◆ _get_suggested_id()
| str homeassistant.components.lovelace.resources.ResourceStorageCollection._get_suggested_id |
( |
|
self, |
|
|
dict |
info |
|
) |
| |
|
private |
◆ _process_create_data()
| dict homeassistant.components.lovelace.resources.ResourceStorageCollection._process_create_data |
( |
|
self, |
|
|
dict |
data |
|
) |
| |
|
private |
◆ _update_data()
| dict homeassistant.components.lovelace.resources.ResourceStorageCollection._update_data |
( |
|
self, |
|
|
dict |
item, |
|
|
dict |
update_data |
|
) |
| |
|
private |
Return a new updated data object.
Definition at line 119 of file resources.py.
◆ async_get_info()
| def homeassistant.components.lovelace.resources.ResourceStorageCollection.async_get_info |
( |
|
self | ) |
|
Return the resources info for YAML mode.
Definition at line 65 of file resources.py.
◆ CREATE_SCHEMA
| homeassistant.components.lovelace.resources.ResourceStorageCollection.CREATE_SCHEMA = vol.Schema(RESOURCE_CREATE_FIELDS) |
|
static |
◆ ll_config
| homeassistant.components.lovelace.resources.ResourceStorageCollection.ll_config |
◆ loaded [1/2]
| bool homeassistant.components.lovelace.resources.ResourceStorageCollection.loaded = False |
|
static |
◆ loaded [2/2]
| homeassistant.components.lovelace.resources.ResourceStorageCollection.loaded |
◆ UPDATE_SCHEMA
| homeassistant.components.lovelace.resources.ResourceStorageCollection.UPDATE_SCHEMA = vol.Schema(RESOURCE_UPDATE_FIELDS) |
|
static |
The documentation for this class was generated from the following file: