forked from M-Labs/thermostat
Remove extra "channel" option to root parameters
Their corresponding channel numbers are already represented with their "value" options.
This commit is contained in:
parent
56655854cf
commit
405d40c543
@ -77,9 +77,6 @@ class CtrlPanel(QObject):
|
|||||||
for ch in range(self.NUM_CHANNELS)
|
for ch in range(self.NUM_CHANNELS)
|
||||||
]
|
]
|
||||||
|
|
||||||
for i, param in enumerate(self.params):
|
|
||||||
param.channel = i
|
|
||||||
|
|
||||||
for i, tree in enumerate(self.trees_ui):
|
for i, tree in enumerate(self.trees_ui):
|
||||||
tree.setHeaderHidden(True)
|
tree.setHeaderHidden(True)
|
||||||
tree.setParameters(self.params[i], showTop=False)
|
tree.setParameters(self.params[i], showTop=False)
|
||||||
|
@ -262,7 +262,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
@asyncSlot(object, object)
|
@asyncSlot(object, object)
|
||||||
async def send_command(self, param, changes):
|
async def send_command(self, param, changes):
|
||||||
"""Translates parameter tree changes into thermostat set_param calls"""
|
"""Translates parameter tree changes into thermostat set_param calls"""
|
||||||
ch = param.channel
|
ch = param.value()
|
||||||
|
|
||||||
for inner_param, change, data in changes:
|
for inner_param, change, data in changes:
|
||||||
if change == "value":
|
if change == "value":
|
||||||
|
Loading…
Reference in New Issue
Block a user