Classes | |
| class | AirlyDataUpdateCoordinator |
Functions | |
| timedelta | set_update_interval (int instances_count, int requests_remaining) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
DataUpdateCoordinator for the Airly integration.
| timedelta homeassistant.components.airly.coordinator.set_update_interval | ( | int | instances_count, |
| int | requests_remaining | ||
| ) |
Return data update interval. The number of requests is reset at midnight UTC so we calculate the update interval based on number of minutes until midnight, the number of Airly instances and the number of remaining requests.
Definition at line 31 of file coordinator.py.
|
private |
Definition at line 28 of file coordinator.py.