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

Public Member Functions

None async_setup (self)
 

Private Member Functions

CollectionEntity _add_entity (self, CollectionChange change_set)
 
None _collection_changed (self, Iterable[CollectionChange] change_set)
 
None _entity_removed (self, str item_id)
 
None _remove_entity (self, CollectionChange change_set)
 
None _update_entity (self, CollectionChange change_set)
 

Detailed Description

Life cycle for a collection of entities.

Definition at line 451 of file collection.py.

Member Function Documentation

◆ _add_entity()

CollectionEntity homeassistant.helpers.collection._CollectionLifeCycle._add_entity (   self,
CollectionChange  change_set 
)
private

Definition at line 472 of file collection.py.

◆ _collection_changed()

None homeassistant.helpers.collection._CollectionLifeCycle._collection_changed (   self,
Iterable[CollectionChange change_set 
)
private
Handle a collection change.

Definition at line 500 of file collection.py.

◆ _entity_removed()

None homeassistant.helpers.collection._CollectionLifeCycle._entity_removed (   self,
str  item_id 
)
private
Remove entity from entities if it's removed or not added.

Definition at line 467 of file collection.py.

◆ _remove_entity()

None homeassistant.helpers.collection._CollectionLifeCycle._remove_entity (   self,
CollectionChange  change_set 
)
private

Definition at line 479 of file collection.py.

◆ _update_entity()

None homeassistant.helpers.collection._CollectionLifeCycle._update_entity (   self,
CollectionChange  change_set 
)
private

Definition at line 492 of file collection.py.

◆ async_setup()

None homeassistant.helpers.collection._CollectionLifeCycle.async_setup (   self)
Set up the collection life cycle.

Definition at line 463 of file collection.py.


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