diff --git a/NetworkPrinterOutputDevicePlugin.py b/NetworkPrinterOutputDevicePlugin.py index e69b700a6c..7a86002210 100644 --- a/NetworkPrinterOutputDevicePlugin.py +++ b/NetworkPrinterOutputDevicePlugin.py @@ -191,12 +191,12 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin): info = zeroconf.get_service_info(service_type, name) if info: - typeOfDevice = info.properties.get(b"type", None).decode("utf-8") - if typeOfDevice == "printer": + type_of_device = info.properties.get(b"type", None).decode("utf-8") + if type_of_device == "printer": address = '.'.join(map(lambda n: str(n), info.address)) self.addPrinterSignal.emit(str(name), address, info.properties) else: - Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." %typeOfDevice ) + Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." %type_of_device ) else: Logger.log("w", "Could not get information about %s" % name)