Merge pull request #8115 from mathiasaerts/hotfix/docs-timeperiod

Docs: In some places, Timeperiod is used instead of TimePeriod
This commit is contained in:
Alexander Aleksandrovič Klimov 2020-10-29 15:43:50 +01:00 committed by GitHub
commit 7e0b773c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -261,7 +261,7 @@ If you want to specify a notification period across midnight,
you can define it the following way: you can define it the following way:
``` ```
object Timeperiod "across-midnight" { object TimePeriod "across-midnight" {
display_name = "Nightly Notification" display_name = "Nightly Notification"
ranges = { ranges = {
"saturday" = "22:00-24:00" "saturday" = "22:00-24:00"
@ -275,7 +275,7 @@ the first day as start with an overlapping range into
the next day: the next day:
``` ```
object Timeperiod "do-not-disturb" { object TimePeriod "do-not-disturb" {
display_name = "Weekend DND" display_name = "Weekend DND"
ranges = { ranges = {
"saturday" = "22:00-06:00" "saturday" = "22:00-06:00"
@ -290,7 +290,7 @@ days, weeks or months. This can be useful when taking components offline
for a distinct period of time. for a distinct period of time.
``` ```
object Timeperiod "standby" { object TimePeriod "standby" {
display_name = "Standby" display_name = "Standby"
ranges = { ranges = {
"2016-09-30 - 2016-10-30" = "00:00-24:00" "2016-09-30 - 2016-10-30" = "00:00-24:00"

View File

@ -62,7 +62,7 @@ By default this template is automatically imported into all [EventCommand](09-ob
### legacy-timeperiod <a id="itl-legacy-timeperiod"></a> ### legacy-timeperiod <a id="itl-legacy-timeperiod"></a>
Timeperiod template for [Timeperiod objects](09-object-types.md#objecttype-timeperiod). Timeperiod template for [TimePeriod objects](09-object-types.md#objecttype-timeperiod).
The `legacy-timeperiod` timeperiod does not support any vars. The `legacy-timeperiod` timeperiod does not support any vars.