diff --git a/neohubapi/enums.py b/neohubapi/enums.py index 6e88b49..0ea4f1c 100644 --- a/neohubapi/enums.py +++ b/neohubapi/enums.py @@ -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: