def _CBDeviceConnected(self, obj_path): self.logger.info("_CBDeviceConnected: device connected at path %s", obj_path) # update config from file self.config.UpdateConfig() new_device = Device(self.config, obj_path) self.devices.append(new_device) if len(self.devices) == 1: self.active_device = new_device self.DeviceConnectSignals(self.active_device) if new_device.ProcessAuth(): new_device.OnConnect()