- fixed loosing connection to Pot task

This commit is contained in:
jens
2020-12-02 17:19:12 +01:00
parent 6a6ca8c92d
commit b5cdb1a973
2 changed files with 12 additions and 7 deletions
+3 -2
View File
@@ -61,8 +61,9 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow):
def on_pot_changed(self, msg):
print("on_pot_changed {}".format(msg))
if "Power" in msg:
self.lcdNumber_2.display(msg['Power'])
for key in msg:
if "Power" in key:
self.lcdNumber_2.display(msg['Power'])
def on_sensor_changed(self, msg):
print("on_sensor_changed {}".format(msg))