diff --git a/ks_includes/config.py b/ks_includes/config.py index 306ceabd..aaa3184a 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -114,6 +114,10 @@ class KlipperScreenConfig: valid = True bools = strs = numbers = () for section in self.config: + if section == 'DEFAULT' or section.startswith('include '): + # Do not validate 'DEFAULT' or 'include*' sections + continue + if section == 'main': bools = ( 'invert_x', 'invert_y', 'invert_z', '24htime', 'only_heaters', 'show_cursor', 'confirm_estop', @@ -153,8 +157,6 @@ class KlipperScreenConfig: elif section.startswith('z_calibrate_position'): # This section may be deprecated in favor of moving this options under the printer section numbers = ('calibrate_x_position', 'calibrate_y_position') - elif section == 'DEFAULT': - continue else: self.errors.append(f'Section [{section}] not recognized')