core: Russound RIO does not init on 2022.7.0

The problem

After upgrading to Home Assistant 2022.7.0, the Russound RIO integration does not initialize. This integration was functional on 2022.5.

This appears to be related to the Python 3.10 switch.

Error in system log is:

Logger: homeassistant.components.media_player
Source: components/russound_rio/media_player.py:46
Integration: Media player ([documentation](https://www.home-assistant.io/integrations/media_player), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+media_player%22))
First occurred: 4:01:43 PM (2 occurrences)
Last logged: 4:01:43 PM
Error while setting up russound_rio platform for media_player

Traceback (most recent call last):
  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

What version of Home Assistant Core has the issue?

2022.7.0

What was the last working version of Home Assistant Core?

2022.5

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Russound RIO

Link to integration documentation on our website

https://www.home-assistant.io/integrations/russound_rio/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.media_player
Source: components/russound_rio/media_player.py:46
Integration: Media player ([documentation](https://www.home-assistant.io/integrations/media_player), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+media_player%22))
First occurred: 4:01:43 PM (2 occurrences)
Last logged: 4:01:43 PM
Error while setting up russound_rio platform for media_player

Traceback (most recent call last):
  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

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 20 (5 by maintainers)

Most upvoted comments

OK, I have no idea what I am doing but I’ll try editing the file to see if it fixes it, then create a pull request in the upstream library.

Thanks for tracking this down. I have published a new version of the russound_rio module (0.1.8) with support for python 3.10.

I no longer have a russound device so supporting this module is difficult for me, if anyone would like to take ownership of it I would be happy to hand it off.

Yes, I opened that issue as well.