Revert "Modbus proxy: setup before devices (#23134)"
This reverts commit 0617c128f0.
This commit is contained in:
parent
062ceceef6
commit
ecaed08949
2 changed files with 5 additions and 5 deletions
|
|
@ -195,6 +195,11 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
}
|
||||
}
|
||||
|
||||
// setup modbus proxy
|
||||
if err == nil {
|
||||
err = wrapErrorWithClass(ClassModbusProxy, configureModbusProxy(&conf.ModbusProxy))
|
||||
}
|
||||
|
||||
// setup site and loadpoints
|
||||
var site *core.Site
|
||||
if err == nil {
|
||||
|
|
|
|||
|
|
@ -549,11 +549,6 @@ func configureEnvironment(cmd *cobra.Command, conf *globalconfig.All) error {
|
|||
err = wrapErrorWithClass(ClassEEBus, configureEEBus(&conf.EEBus))
|
||||
}
|
||||
|
||||
// setup modbus proxy
|
||||
if err == nil {
|
||||
err = wrapErrorWithClass(ClassModbusProxy, configureModbusProxy(&conf.ModbusProxy))
|
||||
}
|
||||
|
||||
// setup javascript VMs
|
||||
if err == nil {
|
||||
err = wrapErrorWithClass(ClassJavascript, configureJavascript(conf.Javascript))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue