Put comments in right place

This commit is contained in:
atse 2024-06-20 12:07:19 +08:00
parent 9acff86547
commit bc4ac43e0b
2 changed files with 6 additions and 5 deletions

View File

@ -213,8 +213,8 @@ class MainWindow(QtWidgets.QMainWindow):
return
with QSignalBlocker(self.thermostat_ctrl_menu.fan_power_slider):
self.thermostat_ctrl_menu.fan_power_slider.setValue(
fan_settings["fan_pwm"] or 100
) # 0 = PWM off = full strength
fan_settings["fan_pwm"] or 100 # 0 = PWM off = full strength
)
with QSignalBlocker(self.thermostat_ctrl_menu.fan_auto_box):
self.thermostat_ctrl_menu.fan_auto_box.setChecked(fan_settings["auto_mode"])
if not self.hw_rev_data["settings"]["fan_pwm_recommended"]:

View File

@ -66,9 +66,10 @@ class _TecGraphs:
self._t_line = self._t_widget.getPlotItem().addLine(label="{value} °C")
self._t_line.setVisible(False)
# Hack for keeping setpoint line in plot range
self._t_setpoint_plot = (
LiveLinePlot()
) # Hack for keeping setpoint line in plot range
)
for graph in t_widget, i_widget:
time_axis = LiveAxis(
@ -83,8 +84,8 @@ class _TecGraphs:
# Enable linking of axes in the graph widget's context menu
graph.register(
graph.getPlotItem().titleLabel.text
) # Slight hack getting the title
graph.getPlotItem().titleLabel.text # Slight hack getting the title
)
temperature_axis = LiveAxis("left", text="Temperature", units="°C")
temperature_axis.showLabel()