From 2d9a38934d7e7f786fd42f60a7eafbfca6c70ec9 Mon Sep 17 00:00:00 2001 From: Bernat Arlandis Date: Thu, 27 Aug 2020 19:55:04 +0200 Subject: [PATCH] Fix --list option --- oversteer/application.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/oversteer/application.py b/oversteer/application.py index 5aaaf7e..61dda10 100644 --- a/oversteer/application.py +++ b/oversteer/application.py @@ -60,11 +60,10 @@ def run(self, argv): nothing_done = True if args.list == True: - device_list = device_manager.list_devices() + devices = device_manager.get_devices() print(_("Devices found:")) - for id, name in device_list: - device = device_manager.get_device(id) - print(" {}: {}".format(device.dev_name, name)) + for device in devices: + print(" {}: {}".format(device.dev_name, device.name)) nothing_done = False if args.mode is not None: device.set_mode(args.mode)