Skip to content

Incompatible with Python 3.10 - TypeError: wait() got an unexpected keyword argument 'loop' #35

@InyoEndo

Description

@InyoEndo

Getting script failure due to

Log in HA:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/climate_ip/climate.py", line 161, in async_service_handler
await asyncio.wait(update_tasks, loop=hass.loop)
TypeError: wait() got an unexpected keyword argument 'loop'

Related 3.10 depreciation of term "loop"
https://docs.python.org/3.10/library/asyncio-task.html#id9

haas seems to have moved away from supporting loop=loop.
home-assistant/architecture#238

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