diff --git a/pytec/pytec/gui/view/live_plot_view.py b/pytec/pytec/gui/view/live_plot_view.py index e7ec852..f651f43 100644 --- a/pytec/pytec/gui/view/live_plot_view.py +++ b/pytec/pytec/gui/view/live_plot_view.py @@ -17,7 +17,9 @@ class LiveDataPlotter(QObject): self._thermostat.report_update.connect(self.update_report) self._thermostat.pid_update.connect(self.update_pid) - self._thermostat.connection_state_changed.connect() + self._thermostat.connection_state_changed.connect( + self.thermostat_state_change_handler + ) self.NUM_CHANNELS = len(live_plots) self.graphs = [] @@ -28,7 +30,7 @@ class LiveDataPlotter(QObject): self.graphs.append(_TecGraphs(live_plot[0], live_plot[1])) @pyqtSlot(ThermostatConnectionState) - def conn(self, state): + def thermostat_state_change_handler(self, state): if state == ThermostatConnectionState.DISCONNECTED: self.clear_graphs()