Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass)
 
None async_heartbeat (self, dt.datetime _)
 
None async_setup (self)
 
None async_unload (self)
 

Static Public Member Functions

None heartbeat (set[str] hosts)
 

Static Public Attributes

 HEARTBEAT_INTERVAL = dt.timedelta(minutes=2)
 

Private Attributes

 _hass
 
 _unsubscribe
 

Detailed Description

Manages heartbeats in the Broadlink integration.

Some devices reboot when they cannot reach the cloud. This mechanism
feeds their watchdog timers so they can be used offline.

Definition at line 17 of file heartbeat.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.__init__ (   self,
HomeAssistant  hass 
)
Initialize the heartbeat.

Definition at line 26 of file heartbeat.py.

Member Function Documentation

◆ async_heartbeat()

None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.async_heartbeat (   self,
dt.datetime  _ 
)
Send packets to feed watchdog timers.

Definition at line 45 of file heartbeat.py.

◆ async_setup()

None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.async_setup (   self)
Set up the heartbeat.

Definition at line 31 of file heartbeat.py.

◆ async_unload()

None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.async_unload (   self)
Unload the heartbeat.

Definition at line 39 of file heartbeat.py.

◆ heartbeat()

None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.heartbeat ( set[str]  hosts)
static
Send packets to feed watchdog timers.

Definition at line 53 of file heartbeat.py.

Member Data Documentation

◆ _hass

homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat._hass
private

Definition at line 28 of file heartbeat.py.

◆ _unsubscribe

homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat._unsubscribe
private

Definition at line 35 of file heartbeat.py.

◆ HEARTBEAT_INTERVAL

homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.HEARTBEAT_INTERVAL = dt.timedelta(minutes=2)
static

Definition at line 24 of file heartbeat.py.


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