altdesktop / python-dbus-next

🚌 The next great DBus library for Python with asyncio support
https://python-dbus-next.readthedocs.io/en/latest/
MIT License
187 stars 59 forks source link

glib.ProxyInterface async method calls do not properly return single results #108

Open mpnordland opened 2 years ago

mpnordland commented 2 years ago

Hello again!

When calling methods that return a single result, the asynchronous glib.ProxyInterface functions return a list with a single item. The synchronous versions of those methods correctly return just the single result.

I believe the code from here in the synchronous call should be moved up to here in the asynchronous call.

I will have a pull request in shortly.

Thanks, Micah