feat(caldav): Add support for tasks

This commit is contained in:
Chris Coutinho
2025-10-19 18:02:43 +02:00
parent d398a8c8e6
commit 92e18825bc
14 changed files with 2140 additions and 784 deletions
+5 -2
View File
@@ -72,7 +72,9 @@ class NextcloudClient:
self.notes = NotesClient(self._client, username)
self.webdav = WebDAVClient(self._client, username)
self.tables = TablesClient(self._client, username)
self.calendar = CalendarClient(self._client, username)
self.calendar = CalendarClient(
base_url, username, auth
) # Uses AsyncDavClient internally
self.contacts = ContactsClient(self._client, username)
self.cookbook = CookbookClient(self._client, username)
self.deck = DeckClient(self._client, username)
@@ -129,5 +131,6 @@ class NextcloudClient:
return f"/remote.php/dav/files/{self.username}"
async def close(self):
"""Close the HTTP client."""
"""Close the HTTP client and CalDAV client."""
await self._client.aclose()
await self.calendar.close()