From ad3f1c3fe763bed07e6f987b1e6819b31872ef1a Mon Sep 17 00:00:00 2001 From: bottomquark Date: Sun, 11 Mar 2018 21:27:21 +0100 Subject: [PATCH] fixes for the previous merge for #4896 removed duplicate example and duplicate text --- source/_components/calendar.caldav.markdown | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/source/_components/calendar.caldav.markdown b/source/_components/calendar.caldav.markdown index b1ef8110212..8ea6b6ad087 100644 --- a/source/_components/calendar.caldav.markdown +++ b/source/_components/calendar.caldav.markdown @@ -42,11 +42,11 @@ calendar: # Example configuration.yaml entry for nextcloud, calendars will be found automatically calendar: - platform: caldav + username: john.doe + password: !secret caldav url: https://nextcloud.example.com/remote.php/dav ``` -Note that all day events only work for custom calendars. - This example will generate default binary sensors for each calendar you have in your account. Those calendars will be `on` when there is an ongoing event and `off` if not. Events that last a whole day are ignored in those calendars. You have to setup custom calendars in order to take them into account or for advanced event filtering. @@ -123,20 +123,6 @@ custom_calendars: ### {% linkable_title Examples %} -Example entry for creating one custom calendar containing all events from the calendar "Agenda" which contain "HomeOffice" in the description, location, or summary. -```yaml -# Example configuration.yaml entry for baikal -calendar: - - platform: caldav - url: https://baikal.my-server.net/cal.php/calendars/john.doe@test.com/default - username: john.doe@test.com - password: !secret caldav - custom_calendars: - - name: 'HomeOffice' - calendar: 'Agenda' - search: 'HomeOffice' -``` - All events of the calendars "private" and "holidays". Note that all day events are not included. ```yaml # Example configuration.yaml entry for nextcloud @@ -180,4 +166,4 @@ calendar: entity_id: calendar.work_holiday state: 'off' -``` \ No newline at end of file +```