From a93a1e65c88727077bb8e315020b354d496a4272 Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Mon, 4 Oct 2021 21:35:43 +1100 Subject: [PATCH] Fixing errors with Workday (#19563) Co-authored-by: Franck Nijhof --- source/_integrations/workday.markdown | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/_integrations/workday.markdown b/source/_integrations/workday.markdown index 22169dfba7a..f8a930b35ee 100644 --- a/source/_integrations/workday.markdown +++ b/source/_integrations/workday.markdown @@ -87,8 +87,7 @@ One other thing to watch is how the `holiday` keyword is used. Your first instin ## Full examples -This example excludes Saturdays, Sundays but not a holiday. Two custom holidays are added. -Even though `sat` and `sun` was not included in `workdays` and in theory, it would not need to be excluded, but because we do not what holidays excluded, we add them so exclude would not default and skip the holidays. Therefore as the note above, 2/17/2020 in the US would still be a workday. +This example excludes Saturdays and Sundays but not holidays. Two custom holidays are added. ```yaml # Example 1 configuration.yaml entry @@ -97,9 +96,12 @@ binary_sensor: country: US workdays: [mon, tue, wed, thu, fri] excludes: [sat, sun] + add_holidays: + - "2020-02-24" + - "2020-04-25" ``` -This example excludes Saturdays, Sundays and holidays. Two custom holidays are added. +This example excludes Saturdays, Sundays and holidays. One custom holiday is added. The date February 24th, 2020 is a Monday but will be excluded because it was added to the `add_holidays` configuration. ```yaml