mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Updated workday.markdown to fix example 2 duplicate (#16091)
Changed duplicate "example 2" to "example 3" and added Tuesday and Thursday because they were omitted from the example without explanation.
This commit is contained in:
parent
b542adc52d
commit
e4b124479a
@ -105,7 +105,7 @@ The date February 24th, 2020 is a Monday but will be excluded because it was add
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: workday
|
- platform: workday
|
||||||
country: DE
|
country: DE
|
||||||
workdays: [mon, wed, fri]
|
workdays: [mon, tue, wed, thu, fri]
|
||||||
excludes: [sat, sun, holiday]
|
excludes: [sat, sun, holiday]
|
||||||
add_holidays:
|
add_holidays:
|
||||||
- '2020-02-24'
|
- '2020-02-24'
|
||||||
@ -114,7 +114,7 @@ binary_sensor:
|
|||||||
This example excludes Saturdays, Sundays and holidays. Two holidays are removed: November 26, 2020 and December 25, 2020.
|
This example excludes Saturdays, Sundays and holidays. Two holidays are removed: November 26, 2020 and December 25, 2020.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example 2 configuration.yaml entry
|
# Example 3 configuration.yaml entry
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: workday
|
- platform: workday
|
||||||
country: US
|
country: US
|
||||||
|
Loading…
x
Reference in New Issue
Block a user