Skip to content

Commit

Permalink
fix: hour goes to 0 to 24
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Feb 29, 2024
1 parent 556c15b commit e1c027d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object ThermostatScheduler:

private class ThermostatSchedulerImpl(private val initialTarget: Temperature) extends ThermostatHourlyScheduler:

private var _schedule: Schedule = DayOfWeek.values().map(d => (d, (0, 23)) -> initialTarget).toMap
private var _schedule: Schedule = DayOfWeek.values().map(d => (d, (0, 24)) -> initialTarget).toMap

override def schedule: Schedule = _schedule

Expand Down

0 comments on commit e1c027d

Please sign in to comment.