1 """Coordinator for fetching data from Google Tasks API."""
6 from typing
import Any, Final
11 from .api
import AsyncConfigEntryAuth
13 _LOGGER = logging.getLogger(__name__)
15 UPDATE_INTERVAL: Final = datetime.timedelta(minutes=30)
20 """Coordinator for fetching Google Tasks for a Task List form the API."""
23 self, hass: HomeAssistant, api: AsyncConfigEntryAuth, task_list_id: str
25 """Initialize TaskUpdateCoordinator."""
29 name=f
"Google Tasks {task_list_id}",
30 update_interval=UPDATE_INTERVAL,
36 """Fetch tasks from API endpoint."""
37 async
with asyncio.timeout(TIMEOUT):
list[dict[str, Any]] _async_update_data(self)
None __init__(self, HomeAssistant hass, AsyncConfigEntryAuth api, str task_list_id)