mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 02:07:56 -06:00
webhooks: Introduce add_early_printer_objects()
Create the initial gcode class via new module level add_early_printer_objects() function. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8c8b9b1812
commit
4346d37c06
2 changed files with 6 additions and 2 deletions
|
@ -268,3 +268,6 @@ class WebHooks:
|
|||
logging.info(msg)
|
||||
raise WebRequestError(msg)
|
||||
return cb
|
||||
|
||||
def add_early_printer_objects(printer):
|
||||
printer.add_object('webhooks', WebHooks(printer))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue