Minor changes

This commit is contained in:
Fabian Affolter 2018-12-29 16:42:44 +01:00
parent 917bddc3bf
commit 526afee562
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

@ -14,19 +14,16 @@ ha_release: 0.41
ha_qa_scale: internal ha_qa_scale: internal
--- ---
The `workday` binary sensor indicates, whether the current day is a workday or The `workday` binary sensor indicates, whether the current day is a workday or not. It allows specifying, which days of the week counts as workdays and also
not. It allows specifying, which days of the week counts as workdays and also uses the python module [holidays](https://pypi.python.org/pypi/holidays) to incorporate information about region-specific public holidays.
uses the python module [holidays](https://pypi.python.org/pypi/holidays)
to incorporate information about region-specific public holidays. ## {% linkable_title Setup %}
Check the [country list](https://github.com/dr-prodigy/python-holidays#available-countries) for available province.
## {% linkable_title Configuration %} ## {% linkable_title Configuration %}
Check the To enable the `workday` sensor in your installation, add the following to your `configuration.yaml` file:
[country list](https://github.com/dr-prodigy/python-holidays#available-countries)
for available province.
To enable the `workday` sensor in your installation,
add the following to your `configuration.yaml` file:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
@ -44,14 +41,11 @@ name:
default: Workday Sensor default: Workday Sensor
country: country:
description: > description: >
Country code according to Country code according to [holidays](https://pypi.org/project/holidays/) notation.
[holidays](https://pypi.org/project/holidays/) notation.
required: true required: true
type: string type: string
province: province:
description: > description: Province code according to [holidays](https://pypi.org/project/holidays/) notation.
Province code according to
[holidays](https://pypi.org/project/holidays/) notation.
required: false required: false
type: string type: string
workdays: workdays:
@ -102,7 +96,6 @@ automation:
``` ```
<p class='note'> <p class='note'>
Please remember that [as explained here][devices] you can only have a single `automation:` entry. Add the automation to your existing automations. Please remember that [as explained here](https://www.home-assistant.io/docs/configuration/devices/) you can only have a single `automation:` entry. Add the automation to your existing automations.
</p> </p>
[devices]: https://www.home-assistant.io/docs/configuration/devices/