diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index d2235166b672e6c7b84dc9c289ac079fb2b5bb9a..a616398a64ee71090b11498ce70a43f9905eaccc 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -147,8 +147,7 @@ class OhmPiHardware: mux_ctl_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["ctl"]["model"]}') mux_config['ctl'] = mux_ctl_module.Ctl(**mux_config['ctl']) # (**self.ctl) assert issubclass(type(mux_config['ctl']), CtlAbstract) - mux_config.update({mux_config.pop('connection', - mux_config['ctl'].interfaces[mux_config.pop('interface_name', 'i2c')])}) + mux_config.update({'connection': mux_config.pop('connection', mux_config['ctl'].interfaces[mux_config.pop('interface_name', 'i2c')])}) mux_config['id'] = mux_id self.mux_boards[mux_id] = mux_module.Mux(**mux_config)