From c5c6ed037eac66f0a2032800fff8116e6cade9dc Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 2 Mar 2025 16:35:52 +0100 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20neue=20Dateien=20f=C3=BCr=20die=20B?= =?UTF-8?q?ambu-Druckereinstellungen=20und=20die=20Initialisierung=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 28 +++++++++++++++++++++++++ templates/bambu_printer_settings.jinja2 | 17 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 __init__.py create mode 100644 templates/bambu_printer_settings.jinja2 diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..54c89c7 --- /dev/null +++ b/__init__.py @@ -0,0 +1,28 @@ +def get_settings_defaults(self): + return { + # ...existing code... + + # Add option to disable camera functionality + "disable_camera": False, + + # ...existing code... + } + +# ...existing code... + +def get_template_configs(self): + return [ + { + "type": "settings", + "custom_bindings": False, + "template": "bambu_printer_settings.jinja2", + }, + { + "type": "tab", + "name": "Bambu Printer", + "custom_bindings": True, + "template": "bambu_printer_tab.jinja2", + }, + ] + +# ...existing code... \ No newline at end of file diff --git a/templates/bambu_printer_settings.jinja2 b/templates/bambu_printer_settings.jinja2 new file mode 100644 index 0000000..4a36bbb --- /dev/null +++ b/templates/bambu_printer_settings.jinja2 @@ -0,0 +1,17 @@ +
+ +
+ + +
+
\ No newline at end of file