diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php
index 4dcd1bed3de6869a54f2ad6664a7d6652eb7d0aa..19bbc6cb93d5552891860e929ba1b6837df21801 100644
--- a/apps/dav/lib/caldav/caldavbackend.php
+++ b/apps/dav/lib/caldav/caldavbackend.php
@@ -212,6 +212,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
 						'uri' => $query->createNamedParameter($values['uri']),
 						'synctoken' => $query->createNamedParameter($values['synctoken']),
 						'transparent' => $query->createNamedParameter($values['transparent']),
+						'components' => $query->createNamedParameter($values['components']),
 				])
 				->execute();
 	}
diff --git a/apps/dav/tests/unit/caldav/caldavbackendtest.php b/apps/dav/tests/unit/caldav/caldavbackendtest.php
index 5e3d4288aa7133d710318d598f8fbdbcaf6a699f..fdd76f902139926410efd484abe1e7f9f588257e 100644
--- a/apps/dav/tests/unit/caldav/caldavbackendtest.php
+++ b/apps/dav/tests/unit/caldav/caldavbackendtest.php
@@ -23,6 +23,7 @@ namespace Tests\Connector\Sabre;
 use DateTime;
 use DateTimeZone;
 use OCA\DAV\CalDAV\CalDavBackend;
+use Sabre\CalDAV\Property\SupportedCalendarComponentSet;
 use Sabre\DAV\Property\Href;
 use Sabre\DAV\PropPatch;
 use Test\TestCase;
@@ -252,6 +253,9 @@ EOD;
 		$calendars = $this->backend->getCalendarsForUser(self::UNIT_TEST_USER);
 		$this->assertEquals(1, count($calendars));
 		$this->assertEquals(self::UNIT_TEST_USER, $calendars[0]['principaluri']);
+		/** @var SupportedCalendarComponentSet $components */
+		$components = $calendars[0]['{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set'];
+		$this->assertEquals(['VEVENT','VTODO'], $components->getValue());
 		$this->assertEquals('Example', $calendars[0]['uri']);
 		$calendarId = $calendars[0]['id'];