forked from M-Labs/thermostat
Put comments in right place
This commit is contained in:
parent
9acff86547
commit
bc4ac43e0b
@ -213,8 +213,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
return
|
return
|
||||||
with QSignalBlocker(self.thermostat_ctrl_menu.fan_power_slider):
|
with QSignalBlocker(self.thermostat_ctrl_menu.fan_power_slider):
|
||||||
self.thermostat_ctrl_menu.fan_power_slider.setValue(
|
self.thermostat_ctrl_menu.fan_power_slider.setValue(
|
||||||
fan_settings["fan_pwm"] or 100
|
fan_settings["fan_pwm"] or 100 # 0 = PWM off = full strength
|
||||||
) # 0 = PWM off = full strength
|
)
|
||||||
with QSignalBlocker(self.thermostat_ctrl_menu.fan_auto_box):
|
with QSignalBlocker(self.thermostat_ctrl_menu.fan_auto_box):
|
||||||
self.thermostat_ctrl_menu.fan_auto_box.setChecked(fan_settings["auto_mode"])
|
self.thermostat_ctrl_menu.fan_auto_box.setChecked(fan_settings["auto_mode"])
|
||||||
if not self.hw_rev_data["settings"]["fan_pwm_recommended"]:
|
if not self.hw_rev_data["settings"]["fan_pwm_recommended"]:
|
||||||
|
@ -66,9 +66,10 @@ class _TecGraphs:
|
|||||||
|
|
||||||
self._t_line = self._t_widget.getPlotItem().addLine(label="{value} °C")
|
self._t_line = self._t_widget.getPlotItem().addLine(label="{value} °C")
|
||||||
self._t_line.setVisible(False)
|
self._t_line.setVisible(False)
|
||||||
|
# Hack for keeping setpoint line in plot range
|
||||||
self._t_setpoint_plot = (
|
self._t_setpoint_plot = (
|
||||||
LiveLinePlot()
|
LiveLinePlot()
|
||||||
) # Hack for keeping setpoint line in plot range
|
)
|
||||||
|
|
||||||
for graph in t_widget, i_widget:
|
for graph in t_widget, i_widget:
|
||||||
time_axis = LiveAxis(
|
time_axis = LiveAxis(
|
||||||
@ -83,8 +84,8 @@ class _TecGraphs:
|
|||||||
|
|
||||||
# Enable linking of axes in the graph widget's context menu
|
# Enable linking of axes in the graph widget's context menu
|
||||||
graph.register(
|
graph.register(
|
||||||
graph.getPlotItem().titleLabel.text
|
graph.getPlotItem().titleLabel.text # Slight hack getting the title
|
||||||
) # Slight hack getting the title
|
)
|
||||||
|
|
||||||
temperature_axis = LiveAxis("left", text="Temperature", units="°C")
|
temperature_axis = LiveAxis("left", text="Temperature", units="°C")
|
||||||
temperature_axis.showLabel()
|
temperature_axis.showLabel()
|
||||||
|
Loading…
Reference in New Issue
Block a user