From 4c740e5ee5d0a79ce4257cea16be5b095559329b Mon Sep 17 00:00:00 2001 From: DubhAd Date: Thu, 7 Dec 2017 15:46:55 +0000 Subject: [PATCH] Update docs Added the fact that the name is a config option. Also provided an example of the list of workdays. --- source/_components/binary_sensor.workday.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_components/binary_sensor.workday.markdown b/source/_components/binary_sensor.workday.markdown index 45f1d2386cc..3864850d146 100644 --- a/source/_components/binary_sensor.workday.markdown +++ b/source/_components/binary_sensor.workday.markdown @@ -22,10 +22,12 @@ To enable the `workday` sensor in your installation, add the following to your ` binary_sensor: - platform: workday country: DE + workdays: [ mon, wed, fri ] ``` Configuration variables: +- **name** (*Optional*): A name for this sensor. Defaults to *Workday Sensor* - **country** (*Required*): Country code according to [holidays](https://pypi.python.org/pypi/holidays/0.8.1) notation. - **province** (*Optional*): Province code according to [holidays](https://pypi.python.org/pypi/holidays/0.8.1) notation. Defaults to None. - **workdays** (*Optional*): List of workdays. Defaults to `mon`, `tue`, `wed`, `thu`, `fri`.