From 57ed77ad11a082bb4c0dd5e2090a04fcc7d9024e Mon Sep 17 00:00:00 2001 From: Scott Stancil Date: Fri, 6 Dec 2024 16:19:51 -0500 Subject: [PATCH 1/4] Add multi-day and height options to Calendar Card --- source/_lovelace/calendar.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_lovelace/calendar.markdown b/source/_lovelace/calendar.markdown index cd01ccb43669..ecd98638e913 100644 --- a/source/_lovelace/calendar.markdown +++ b/source/_lovelace/calendar.markdown @@ -41,6 +41,14 @@ initial_view: required: false description: "The view that will show first when the card is loaded onto the page. Options are `dayGridMonth`, `dayGridDay`, and `listWeek`." type: string +multi_day: + required: false + description: "Whether to display multi-day events in blocks spanning the calendar, the way they are shown in the Calendar panel on the sidebar" + type: boolean +height: + required: false + description: "The height in pixels at which to render the card (defaults to 400px). This is recommended if using the `multi_day` option" + type: number entities: required: true description: A list of calendar entities that will be displayed in the card. From 7722c00cbee25be14c7a3e2359ac8144b4829d4b Mon Sep 17 00:00:00 2001 From: Scott Stancil Date: Fri, 6 Dec 2024 16:26:30 -0500 Subject: [PATCH 2/4] Update source/_lovelace/calendar.markdown Add default value to multi_day description Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- source/_lovelace/calendar.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_lovelace/calendar.markdown b/source/_lovelace/calendar.markdown index ecd98638e913..19ecfa6057dd 100644 --- a/source/_lovelace/calendar.markdown +++ b/source/_lovelace/calendar.markdown @@ -43,7 +43,7 @@ initial_view: type: string multi_day: required: false - description: "Whether to display multi-day events in blocks spanning the calendar, the way they are shown in the Calendar panel on the sidebar" + description: "Whether to display multi-day events in blocks spanning the calendar, the way they are shown in the Calendar panel on the sidebar. Defaults to false." type: boolean height: required: false From f4a4774e4f42bab56f294d44bd20e6e9b4710f08 Mon Sep 17 00:00:00 2001 From: Scott Stancil Date: Fri, 6 Dec 2024 16:43:17 -0500 Subject: [PATCH 3/4] Clarify wording on height option, per coderabbit suggestion --- source/_lovelace/calendar.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_lovelace/calendar.markdown b/source/_lovelace/calendar.markdown index 19ecfa6057dd..ab7d314d349b 100644 --- a/source/_lovelace/calendar.markdown +++ b/source/_lovelace/calendar.markdown @@ -47,7 +47,7 @@ multi_day: type: boolean height: required: false - description: "The height in pixels at which to render the card (defaults to 400px). This is recommended if using the `multi_day` option" + description: "The height at which to render the card, specified as a number in pixels (e.g., 400 for 400px). This is recommended when using the `multi_day` option. Defaults to 400." type: number entities: required: true From 6c8899869882ba021d1ac3a2a7514252a6b91ec5 Mon Sep 17 00:00:00 2001 From: Scott Stancil Date: Fri, 6 Dec 2024 16:44:08 -0500 Subject: [PATCH 4/4] Add new options to example yaml --- source/_lovelace/calendar.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_lovelace/calendar.markdown b/source/_lovelace/calendar.markdown index ab7d314d349b..91e64031148e 100644 --- a/source/_lovelace/calendar.markdown +++ b/source/_lovelace/calendar.markdown @@ -63,6 +63,8 @@ Example: ```yaml type: calendar +multi_day: true +height: 900 entities: - calendar.calendar_1 - calendar.calendar_2