From b7dfa11e690a64ccaeba837df75b71261c4e3ca8 Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Tue, 30 Jul 2019 17:41:03 +0200 Subject: [PATCH] Enable network key pairing again --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 1b1236c719..206fdb0495 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -167,10 +167,9 @@ class CloudOutputDeviceManager: device = next((c for c in self._remote_clusters.values() if c.matchesNetworkKey(local_network_key)), None) if not device: return - print("CONNECT BY NETWORK KEY", local_network_key, device.key, device.name) Logger.log("i", "Found cluster %s with network key %s", device, local_network_key) - # active_machine.setMetaDataEntry(self.META_CLUSTER_ID, device.key) - # self._connectToOutputDevice(device, active_machine) + active_machine.setMetaDataEntry(self.META_CLUSTER_ID, device.key) + self._connectToOutputDevice(device, active_machine) ## Connects to an output device and makes sure it is registered in the output device manager. @staticmethod