Fixes for add by IP

This commit is contained in:
ChrisTerBeke 2019-08-06 21:46:37 +02:00
parent 0263a9a9f5
commit ac177659e5
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
2 changed files with 8 additions and 3 deletions

View file

@ -115,9 +115,10 @@ class LocalClusterOutputDeviceManager:
self._onDeviceDiscovered("manual:{}".format(address), address, {
b"name": status.name.encode("utf-8"),
b"address": address.encode("utf-8"),
b"machine": str(status.hardware.get("typeid", "")).encode("utf-8"),
b"manual": b"true",
b"incomplete": b"true",
b"temporary": b"true"
b"firmware_version": status.firmware.encode("utf-8"),
b"cluster_size": b"1"
})
CuraApplication.getInstance().callLater(callback, True, address)