Skip to content

Commit

Permalink
Change syntax for no on period during weekday
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobGM committed Feb 12, 2018
1 parent 2ac0cc7 commit 450da8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions astrality/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ class TimeOfDay(Timer):
'wednesday': '09:00-17:00',
'thursday': '09:00-17:00',
'friday': '09:00-17:00',
'saturday': None,
'sunday': None,
'saturday': '',
'sunday': '',
}

def __init__(self, timer_config: TimerConfig) -> None:
Expand Down
18 changes: 9 additions & 9 deletions docs/timers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,23 +211,23 @@ Periods
:header: "Option", "Default", "Description"
:widths: 6, 5, 30

"monday", "'09:00-17:00'", "The time of day that is considered 'on'."
"tuesday", "'09:00-17:00'", "The time of day that is considered 'on'."
"wednesday", "'09:00-17:00'", "The time of day that is considered 'on'."
"thursday", "'09:00-17:00'", "The time of day that is considered 'on'."
"friday", "'09:00-17:00'", "The time of day that is considered 'on'."
"saturday", None, "The time of day that is considered 'on'."
"sunday", None, "The time of day that is considered 'on'."
"monday", "``'09:00-17:00'``", "The time of day that is considered 'on'."
"tuesday", "``'09:00-17:00'``", "The time of day that is considered 'on'."
"wednesday", "``'09:00-17:00'``", "The time of day that is considered 'on'."
"thursday", "``'09:00-17:00'``", "The time of day that is considered 'on'."
"friday", "``'09:00-17:00'``", "The time of day that is considered 'on'."
"saturday", "``''``", "The time of day that is considered 'on'."
"sunday", "``''``", "The time of day that is considered 'on'."


**Example configuration**

.. code-block:: yaml
module/european_tue_to_sat_work:
module/european_tue_to_sat_work_week:
timer:
type: time_of_day
monday: None
monday: ''
tuesday: '08:00-16:00'
wednesday: '08:00-16:00'
thursday: '08:00-16:00'
Expand Down

0 comments on commit 450da8e

Please sign in to comment.