return dict(((device['id'], device) for device in devices))