Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.guardian.PairedSensorManager Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, ConfigEntry entry, Client client, asyncio.Lock api_lock, GuardianDataUpdateCoordinator sensor_pair_dump_coordinator)
 
None async_initialize (self)
 
None async_pair_sensor (self, str uid)
 
None async_process_latest_paired_sensor_uids (self)
 
None async_unpair_sensor (self, str uid)
 

Private Attributes

 _api_lock
 
 _client
 
 _entry
 
 _hass
 
 _paired_uids
 
 _sensor_pair_dump_coordinator
 

Detailed Description

Define an object that manages the addition/removal of paired sensors.

Definition at line 264 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.guardian.PairedSensorManager.__init__ (   self,
HomeAssistant  hass,
ConfigEntry  entry,
Client  client,
asyncio.Lock  api_lock,
GuardianDataUpdateCoordinator  sensor_pair_dump_coordinator 
)
Initialize.

Definition at line 267 of file __init__.py.

Member Function Documentation

◆ async_initialize()

None homeassistant.components.guardian.PairedSensorManager.async_initialize (   self)
Initialize the manager.

Definition at line 284 of file __init__.py.

◆ async_pair_sensor()

None homeassistant.components.guardian.PairedSensorManager.async_pair_sensor (   self,
str  uid 
)
Add a new paired sensor coordinator.

Definition at line 298 of file __init__.py.

◆ async_process_latest_paired_sensor_uids()

None homeassistant.components.guardian.PairedSensorManager.async_process_latest_paired_sensor_uids (   self)
Process a list of new UIDs.

Definition at line 321 of file __init__.py.

◆ async_unpair_sensor()

None homeassistant.components.guardian.PairedSensorManager.async_unpair_sensor (   self,
str  uid 
)
Remove a paired sensor coordinator.

Definition at line 342 of file __init__.py.

Member Data Documentation

◆ _api_lock

homeassistant.components.guardian.PairedSensorManager._api_lock
private

Definition at line 276 of file __init__.py.

◆ _client

homeassistant.components.guardian.PairedSensorManager._client
private

Definition at line 277 of file __init__.py.

◆ _entry

homeassistant.components.guardian.PairedSensorManager._entry
private

Definition at line 278 of file __init__.py.

◆ _hass

homeassistant.components.guardian.PairedSensorManager._hass
private

Definition at line 279 of file __init__.py.

◆ _paired_uids

homeassistant.components.guardian.PairedSensorManager._paired_uids
private

Definition at line 334 of file __init__.py.

◆ _sensor_pair_dump_coordinator

homeassistant.components.guardian.PairedSensorManager._sensor_pair_dump_coordinator
private

Definition at line 281 of file __init__.py.


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