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

Public Member Functions

None async_load (self, list[dict] data)
 
- Public Member Functions inherited from homeassistant.helpers.collection.YamlCollection
None __init__ (self, logging.Logger logger, IDManager|None id_manager=None)
 
- Public Member Functions inherited from homeassistant.helpers.collection.ObservableCollection
None __init__ (self, IDManager|None id_manager)
 
Callable[[], None] async_add_change_set_listener (self, ChangeSetListener listener)
 
Callable[[], None] async_add_listener (self, ChangeListener listener)
 
list[_ItemT] async_items (self)
 
None notify_changes (self, Iterable[CollectionChange] change_set)
 

Static Public Attributes

int counter = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from homeassistant.helpers.collection.YamlCollection
CollectionEntity create_entity (type[CollectionEntity] entity_class, ConfigType config)
 
- Public Attributes inherited from homeassistant.helpers.collection.YamlCollection
 logger
 
- Public Attributes inherited from homeassistant.helpers.collection.ObservableCollection
 id_manager
 

Detailed Description

A collection without IDs.

Definition at line 417 of file collection.py.

Member Function Documentation

◆ async_load()

None homeassistant.helpers.collection.IDLessCollection.async_load (   self,
list[dict]  data 
)
Load the collection. Overrides existing data.

Reimplemented from homeassistant.helpers.collection.YamlCollection.

Definition at line 422 of file collection.py.

Member Data Documentation

◆ counter

int homeassistant.helpers.collection.IDLessCollection.counter = 0
static

Definition at line 420 of file collection.py.


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