Poohl / joycontrol

Emulate Nintendo Switch Controllers over Bluetooth
GNU General Public License v3.0
302 stars 66 forks source link

Connected once then keep showing error #29

Open JayzeeHuang opened 1 year ago

JayzeeHuang commented 1 year ago

run_controller_cli.py:356: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() Traceback (most recent call last): File "/home/jayzee/Downloads/joycontrol-amiibo_edits/run_controller_cli.py", line 357, in <module> loop.run_until_complete( File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/jayzee/Downloads/joycontrol-amiibo_edits/run_controller_cli.py", line 311, in _main transport, protocol = await create_hid_server(factory, reconnect_bt_addr=args.reconnect_bt_addr, File "/home/jayzee/Downloads/joycontrol-amiibo_edits/joycontrol/server.py", line 132, in create_hid_server paths = hid.get_paired_switches() File "/home/jayzee/Downloads/joycontrol-amiibo_edits/joycontrol/device.py", line 77, in get_paired_switches if d and d['Name'] == "Nintendo Switch": KeyError: 'Name'