--- a/PluginMqttMonitor.py Thu May 28 17:36:58 2020 +0200 +++ b/PluginMqttMonitor.py Tue Jun 23 19:26:33 2020 +0200 @@ -7,8 +7,6 @@ Module implementing the MQTT Monitor plug-in. """ -from __future__ import unicode_literals - import os import json @@ -26,7 +24,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "1.2.3" +version = "2.0.0" className = "MqttMonitorPlugin" packageName = "MqttMonitor" shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" @@ -41,7 +39,6 @@ ) needsRestart = False pyqtApi = 2 -python2Compatible = True # End-Of-Header error = "" @@ -62,14 +59,12 @@ version = QCoreApplication.translate( "MqttMonitorPlugin", "(package not available)") - data = { + return { "programEntry": False, "header": QCoreApplication.translate("MqttMonitorPlugin", "MQTT"), "text": QCoreApplication.translate("MqttMonitorPlugin", "paho-mqtt"), "version": version, } - - return data def prepareUninstall(): @@ -138,7 +133,7 @@ lightness = palette.color(QPalette.Window).lightness() usesDarkPalette = lightness <= 128 if usesDarkPalette: - iconSuffix = "dark" + iconSuffix = "dark" else: iconSuffix = "light"