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",