Add back the parent

This commit is contained in:
atse 2024-07-08 12:34:13 +08:00
parent 96210151d5
commit 12a1dd4034

View File

@ -5,7 +5,7 @@ from autotune import PIDAutotuneState, PIDAutotune
class PIDAutoTuner(QObject): class PIDAutoTuner(QObject):
def __init__(self, parent, thermostat, num_of_channel): def __init__(self, parent, thermostat, num_of_channel):
super().__init__() super().__init__(parent)
self._thermostat = thermostat self._thermostat = thermostat
self.autotuners = [PIDAutotune(25) for _ in range(num_of_channel)] self.autotuners = [PIDAutotune(25) for _ in range(num_of_channel)]