Skip to content

Python 3.10 - wait() got an unexpected keyword argument 'loop' #66

@rwarner

Description

@rwarner

Just upgraded to 2023.2.0 and also upgraded to Python 3.10.9 and it appears that I run into an error with some Python incompatibility:

Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv_3.10.9/lib/python3.10/site-packages/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/srv/homeassistant/homeassistant_venv_3.10.9/lib/python3.10/site-packages/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/srv/homeassistant/homeassistant_venv_3.10.9/lib/python3.10/site-packages/homeassistant/core.py", line 1787, in async_call
    task.result()
  File "/srv/homeassistant/homeassistant_venv_3.10.9/lib/python3.10/site-packages/homeassistant/core.py", line 1824, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/home/homeassistant/.homeassistant/custom_components/variable/__init__.py", line 126, in async_set_variable_service
    yield from asyncio.wait(tasks, loop=hass.loop)
TypeError: wait() got an unexpected keyword argument 'loop'

Doesn't seem like this will be fixed given the other issues filed for this repo. Will be seeking an alternative for storing variables for HASS globally and will update here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions