pyg90alarm.entities.base_list
Base entity list.
Classes
|
Base entity list class. |
- class pyg90alarm.entities.base_list.G90BaseList(parent)
-
Base entity list class.
- Parameters:
parent (
object) – Parent alarm panel instance.
- property entities: List[T]
Return the list of entities.
update()is called if the list is empty.- Returns:
List of entities
- async update()
Update the list of entities from the panel.
- Return type:
List[TypeVar(T, bound=G90BaseEntity)]- Returns:
List of entities
- async find_by_idx(idx, exclude_unavailable, subindex=0)
Finds entity by index.
- async find(idx, name, exclude_unavailable, subindex=0)
Finds entity by index, subindex and name.
- async find_free_idx()
Finds the first free index in the list.
The index is from protocol point of view (.index attribute of the protocol data), not the index in the list. The index is required when registering a new entity on the panel.
- Return type:
- Returns:
Free index