forked from andrius/neohubapi
Add none-checking to schedule_format_int_to_enum
This commit is contained in:
parent
c6d62b5852
commit
b54e00fbe3
|
@ -23,6 +23,8 @@ class ScheduleFormat(enum.Enum):
|
|||
|
||||
|
||||
def schedule_format_int_to_enum(int_format):
|
||||
if int_format is None:
|
||||
return None
|
||||
if int_format == 0:
|
||||
return ScheduleFormat.ZERO
|
||||
elif int_format == 1:
|
||||
|
|
Loading…
Reference in New Issue