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 | |
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.
| None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.__init__ | ( | self, | |
| HomeAssistant | hass | ||
| ) |
Initialize the heartbeat.
Definition at line 26 of file heartbeat.py.
| 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.
| None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.async_setup | ( | self | ) |
Set up the heartbeat.
Definition at line 31 of file heartbeat.py.
| None homeassistant.components.broadlink.heartbeat.BroadlinkHeartbeat.async_unload | ( | self | ) |
Unload the heartbeat.
Definition at line 39 of file heartbeat.py.
|
static |
Send packets to feed watchdog timers.
Definition at line 53 of file heartbeat.py.
|
private |
Definition at line 28 of file heartbeat.py.
|
private |
Definition at line 35 of file heartbeat.py.
|
static |
Definition at line 24 of file heartbeat.py.