Skip to content

Commit

Permalink
fix(schedule): Fix bug in previous commit
Browse files Browse the repository at this point in the history
Times should used ints for hours and minutes. Not floats.
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 22, 2020
1 parent 03c2fb6 commit 3806981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honeybee_schema/energy/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ScheduleDay(NamedEnergyBaseModel):
'The length of this list must match the length of the times list.'
)

times: List[conlist(float, min_items=2, max_items=2)] = Field(
times: List[conlist(int, min_items=2, max_items=2)] = Field(
[0, 0],
description='A list of lists with each sub-list possesing 2 values for '
'[hour, minute]. The length of the master list must match the length '
Expand Down

0 comments on commit 3806981

Please sign in to comment.