Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.airly.coordinator Namespace Reference

Classes

class  AirlyDataUpdateCoordinator
 

Functions

timedelta set_update_interval (int instances_count, int requests_remaining)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

DataUpdateCoordinator for the Airly integration.

Function Documentation

◆ set_update_interval()

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.

Variable Documentation

◆ _LOGGER

homeassistant.components.airly.coordinator._LOGGER = logging.getLogger(__name__)
private

Definition at line 28 of file coordinator.py.