forked from M-Labs/thermostat
Both command and param
This commit is contained in:
parent
fc4f69aec0
commit
4caaf44f74
@ -627,7 +627,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||||||
if inner_param.name() == 'Control Method' and not data:
|
if inner_param.name() == 'Control Method' and not data:
|
||||||
return
|
return
|
||||||
await asyncio.gather(*[self.client._command(x.format(value=data)) for x in inner_param.opts["commands"]])
|
await asyncio.gather(*[self.client._command(x.format(value=data)) for x in inner_param.opts["commands"]])
|
||||||
elif inner_param.opts.get("param", None) is not None:
|
if inner_param.opts.get("param", None) is not None:
|
||||||
await asyncio.gather(*[self.client.set_param(*x, data) for x in inner_param.opts["param"]])
|
await asyncio.gather(*[self.client.set_param(*x, data) for x in inner_param.opts["param"]])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user