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

Private Member Functions

dict _create_item (self, str item_id, dict data)
 
SerializedStorageCollection _data_to_save (self)
 
dict _deserialize_item (self, dict data)
 
dict _serialize_item (self, str item_id, dict item)
 

Detailed Description

A specialized StorageCollection where the items are untyped dicts.

Definition at line 396 of file collection.py.

Member Function Documentation

◆ _create_item()

dict homeassistant.helpers.collection.DictStorageCollection._create_item (   self,
str  item_id,
dict  data 
)
private
Create an item from its validated, serialized representation.

Definition at line 399 of file collection.py.

◆ _data_to_save()

SerializedStorageCollection homeassistant.helpers.collection.DictStorageCollection._data_to_save (   self)
private
Return JSON-compatible date for storing to file.

Definition at line 412 of file collection.py.

◆ _deserialize_item()

dict homeassistant.helpers.collection.DictStorageCollection._deserialize_item (   self,
dict  data 
)
private
Create an item from its validated, serialized representation.

Definition at line 403 of file collection.py.

◆ _serialize_item()

dict homeassistant.helpers.collection.DictStorageCollection._serialize_item (   self,
str  item_id,
dict  item 
)
private
Return the serialized representation of an item for storing.

Definition at line 407 of file collection.py.


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