API object for wiffi handling. Stored in hass.data.
Definition at line 74 of file __init__.py.
◆ __init__()
| def homeassistant.components.wiffi.WiffiIntegrationApi.__init__ |
( |
|
self, |
|
|
|
hass |
|
) |
| |
Initialize the instance.
Definition at line 77 of file __init__.py.
◆ __call__()
| def homeassistant.components.wiffi.WiffiIntegrationApi.__call__ |
( |
|
self, |
|
|
|
device, |
|
|
|
metrics |
|
) |
| |
Process callback from TCP server if new data arrives from a device.
Definition at line 99 of file __init__.py.
◆ _periodic_tick()
| def homeassistant.components.wiffi.WiffiIntegrationApi._periodic_tick |
( |
|
self, |
|
|
|
now = None |
|
) |
| |
|
private |
Check if any entity has timed out because it has not been updated.
Definition at line 123 of file __init__.py.
◆ async_setup()
| def homeassistant.components.wiffi.WiffiIntegrationApi.async_setup |
( |
|
self, |
|
|
|
config_entry |
|
) |
| |
◆ server()
| def homeassistant.components.wiffi.WiffiIntegrationApi.server |
( |
|
self | ) |
|
Return TCP server instance for start + close.
Definition at line 118 of file __init__.py.
◆ shutdown()
| def homeassistant.components.wiffi.WiffiIntegrationApi.shutdown |
( |
|
self | ) |
|
Shutdown wiffi api.
Remove listener for periodic callbacks.
Definition at line 91 of file __init__.py.
◆ _hass
| homeassistant.components.wiffi.WiffiIntegrationApi._hass |
|
private |
◆ _known_devices
| homeassistant.components.wiffi.WiffiIntegrationApi._known_devices |
|
private |
◆ _periodic_callback
| homeassistant.components.wiffi.WiffiIntegrationApi._periodic_callback |
|
private |
◆ _server
| homeassistant.components.wiffi.WiffiIntegrationApi._server |
|
private |
The documentation for this class was generated from the following file: