Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.deconz.sensor.DeconzBatteryTracker Class Reference

Public Member Functions

None __init__ (self, str sensor_id, DeconzHub hub, DeconzSensorDescription description, AddEntitiesCallback async_add_entities)
 
None async_update_callback (self)
 

Public Attributes

 async_add_entities
 
 description
 
 hub
 
 sensor
 
 unsubscribe
 

Detailed Description

Track sensors without a battery state and add entity when battery state exist.

Definition at line 463 of file sensor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.deconz.sensor.DeconzBatteryTracker.__init__ (   self,
str  sensor_id,
DeconzHub  hub,
DeconzSensorDescription  description,
AddEntitiesCallback  async_add_entities 
)
Set up tracker.

Definition at line 466 of file sensor.py.

Member Function Documentation

◆ async_update_callback()

None homeassistant.components.deconz.sensor.DeconzBatteryTracker.async_update_callback (   self)
Update the device's state.

Definition at line 481 of file sensor.py.

Member Data Documentation

◆ async_add_entities

homeassistant.components.deconz.sensor.DeconzBatteryTracker.async_add_entities

Definition at line 477 of file sensor.py.

◆ description

homeassistant.components.deconz.sensor.DeconzBatteryTracker.description

Definition at line 476 of file sensor.py.

◆ hub

homeassistant.components.deconz.sensor.DeconzBatteryTracker.hub

Definition at line 475 of file sensor.py.

◆ sensor

homeassistant.components.deconz.sensor.DeconzBatteryTracker.sensor

Definition at line 474 of file sensor.py.

◆ unsubscribe

homeassistant.components.deconz.sensor.DeconzBatteryTracker.unsubscribe

Definition at line 478 of file sensor.py.


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