util.py: Skip the offline device during setup_device