aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/fan.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-03 12:53:11 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-03 12:53:11 -0500
commitf4bfce260a2ea38209646957d7c423db5bb54faa (patch)
tree94bbfb8b1ce3555ccc1ef773f3e5399c7f141c7a /klippy/extras/fan.py
parent7e3adde542b178bb709d4de0a3dcb73e5c2afd43 (diff)
downloadkutter-f4bfce260a2ea38209646957d7c423db5bb54faa.tar.gz
kutter-f4bfce260a2ea38209646957d7c423db5bb54faa.tar.xz
kutter-f4bfce260a2ea38209646957d7c423db5bb54faa.zip
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>
Diffstat (limited to 'klippy/extras/fan.py')
-rw-r--r--klippy/extras/fan.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/extras/fan.py b/klippy/extras/fan.py
index 7bc4a26d..cbfdd678 100644
--- a/klippy/extras/fan.py
+++ b/klippy/extras/fan.py
@@ -34,6 +34,4 @@ class PrinterFan:
self.last_fan_value = value
def load_config(config):
- if config.get_name() != 'fan':
- raise config.error("Invalid print cooling fan config name")
return PrinterFan(config)