mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 06:40:26 +09:00
klippy: Introduce load_config_prefix() for modules that take parameters
Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -36,6 +36,4 @@ class HomingOverride:
|
||||
self.in_script = False
|
||||
|
||||
def load_config(config):
|
||||
if config.get_name() != 'homing_override':
|
||||
raise config.error("Invalid homing_override config name")
|
||||
return HomingOverride(config)
|
||||
|
||||
Reference in New Issue
Block a user