Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Python 3.10? #10

Open
neillt opened this issue Jul 6, 2022 · 1 comment
Open

Not compatible with Python 3.10? #10

neillt opened this issue Jul 6, 2022 · 1 comment

Comments

@neillt
Copy link
Contributor

neillt commented Jul 6, 2022

Trying to use the russound_rio library as part of Home Assistant 2022.7, and I believe that they have switched to Python 3.10.5. Now, when invoking the rio library, it would appear that the Loop parameters are making it angry as seen below.

The library does not talk to any of my Russound amps, effectively breaking the integration.

I am not a Python dev by any means, so I don't know how hard it would be to re-code this to work with 3.10.

  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/russound_rio/media_player.py", line 46, in async_setup_platform
    russ = Russound(hass.loop, host, port)
  File "/usr/local/lib/python3.10/site-packages/russound_rio/rio.py", line 71, in __init__
    self._cmd_queue = asyncio.Queue(loop=loop)
  File "/usr/local/lib/python3.10/asyncio/queues.py", line 34, in __init__
    super().__init__(loop=loop)
  File "/usr/local/lib/python3.10/asyncio/mixins.py", line 17, in __init__
    raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary

@wickerwaka
Copy link
Owner

Merged PR and released a new version of the module: https://github.com/wickerwaka/russound_rio/releases/tag/v0.1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants