get_devices() now returns a list (instead of a generator)