forked from andrius/neohubapi
Merge branch 'master' into 'master'
Add none-checking to schedule_format_int_to_enum See merge request neohubapi/neohubapi!3
This commit is contained in:
commit
5ef21a23fd
|
@ -23,6 +23,8 @@ class ScheduleFormat(enum.Enum):
|
||||||
|
|
||||||
|
|
||||||
def schedule_format_int_to_enum(int_format):
|
def schedule_format_int_to_enum(int_format):
|
||||||
|
if int_format is None:
|
||||||
|
return None
|
||||||
if int_format == 0:
|
if int_format == 0:
|
||||||
return ScheduleFormat.ZERO
|
return ScheduleFormat.ZERO
|
||||||
elif int_format == 1:
|
elif int_format == 1:
|
||||||
|
|
Loading…
Reference in New Issue