From 37e236405aebc25c305b7b17000ad0c2d997b030 Mon Sep 17 00:00:00 2001 From: "saumya.jain" Date: Fri, 27 Oct 2023 09:30:06 +0200 Subject: [PATCH] fix for functions CURA-11138 --- cura/PrinterOutput/NetworkedPrinterOutputDevice.py | 4 ++-- .../src/Models/Http/CloudClusterResponse.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/PrinterOutput/NetworkedPrinterOutputDevice.py b/cura/PrinterOutput/NetworkedPrinterOutputDevice.py index 0d72f8e9e2..ed1dbe1ab8 100644 --- a/cura/PrinterOutput/NetworkedPrinterOutputDevice.py +++ b/cura/PrinterOutput/NetworkedPrinterOutputDevice.py @@ -415,9 +415,9 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice): @pyqtProperty(str, constant = True) def printerType(self) -> str: - return self.getPrinterType(self._properties.get(b"printer_type", b"Unknown").decode("utf-8")) + return self.getPrinterTypeIfMakerBot(self._properties.get(b"printer_type", b"Unknown").decode("utf-8")) - def getPrinterTypeIfMakerBot(printer_type): + def getPrinterTypeIfMakerBot(self, printer_type): method_printer_type = { "fire_e": "ultimaker_method", "lava_f": "ultimaker_methodx", diff --git a/plugins/UM3NetworkPrinting/src/Models/Http/CloudClusterResponse.py b/plugins/UM3NetworkPrinting/src/Models/Http/CloudClusterResponse.py index 8a5998b999..9f33847f2a 100644 --- a/plugins/UM3NetworkPrinting/src/Models/Http/CloudClusterResponse.py +++ b/plugins/UM3NetworkPrinting/src/Models/Http/CloudClusterResponse.py @@ -52,7 +52,7 @@ class CloudClusterResponse(BaseModel): """ return str({k: v for k, v in self.__dict__.items() if k in {"cluster_id", "host_guid", "host_name", "status", "is_online", "host_version", "host_internal_ip", "friendly_name", "printer_type", "printer_count", "capabilities"}}) - def getPrinterTypeIfMakerBot(printer_type): + def getPrinterTypeIfMakerBot(self, printer_type): method_printer_type = { "fire_e": "ultimaker_method", "lava_f": "ultimaker_methodx",