aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/display/__init__.py')
-rw-r--r--klippy/extras/display/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/klippy/extras/display/__init__.py b/klippy/extras/display/__init__.py
index da0e861c..b4650180 100644
--- a/klippy/extras/display/__init__.py
+++ b/klippy/extras/display/__init__.py
@@ -5,17 +5,21 @@
# This file may be distributed under the terms of the GNU GPLv3 license.
from . import display
+
def load_config(config):
return display.load_config(config)
+
def load_config_prefix(config):
- if not config.has_section('display'):
+ if not config.has_section("display"):
raise config.error(
"A primary [display] section must be defined in printer.cfg "
- "to use auxiliary displays")
+ "to use auxiliary displays"
+ )
name = config.get_name().split()[-1]
if name == "display":
raise config.error(
"Section name [display display] is not valid. "
- "Please choose a different postfix.")
+ "Please choose a different postfix."
+ )
return display.load_config(config)