Public Member Functions | |
| def | __init__ (self, hass, client) |
| def | run (self) |
Public Attributes | |
| client | |
| data | |
| hass | |
| unit | |
Private Member Functions | |
| def | _reconnect (self) |
Private Attributes | |
| _fails | |
| _shutdown | |
WaterFurnace Data collector. This is implemented as a dedicated thread polling a websocket in a tight loop. The websocket will shut itself from the server side if a packet is not sent at least every 30 seconds. The reading is cheap, the login is less cheap, so keeping this open and polling on a very regular cadence is actually the least io intensive thing to do.
Definition at line 71 of file __init__.py.
| def homeassistant.components.waterfurnace.WaterFurnaceData.__init__ | ( | self, | |
| hass, | |||
| client | |||
| ) |
Initialize the data object.
Definition at line 82 of file __init__.py.
|
private |
Reconnect on a failure.
Definition at line 92 of file __init__.py.
| def homeassistant.components.waterfurnace.WaterFurnaceData.run | ( | self | ) |
Thread run loop.
Definition at line 124 of file __init__.py.
|
private |
Definition at line 90 of file __init__.py.
|
private |
Definition at line 89 of file __init__.py.
| homeassistant.components.waterfurnace.WaterFurnaceData.client |
Definition at line 86 of file __init__.py.
| homeassistant.components.waterfurnace.WaterFurnaceData.data |
Definition at line 88 of file __init__.py.
| homeassistant.components.waterfurnace.WaterFurnaceData.hass |
Definition at line 85 of file __init__.py.
| homeassistant.components.waterfurnace.WaterFurnaceData.unit |
Definition at line 87 of file __init__.py.