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

wait() got an unexpected keyword argument 'loop' #47

Closed
sgottscho opened this issue Aug 15, 2022 · 3 comments
Closed

wait() got an unexpected keyword argument 'loop' #47

sgottscho opened this issue Aug 15, 2022 · 3 comments

Comments

@sgottscho
Copy link

Just started receiving the following error when trying to run the dreamscreen service.

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/dreamscreen/init.py:176
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:06:33 AM (7 occurrences)
Last logged: 9:08:12 AM

[139867467491664] wait() got an unexpected keyword argument 'loop'
[139868267272256] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
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/dreamscreen/init.py", line 176, in async_handle_dreamscreen_services
await asyncio.wait(updates, loop=hass.loop)
TypeError: wait() got an unexpected keyword argument 'loop'

@zanix
Copy link
Collaborator

zanix commented Aug 15, 2022

I got this error as well, I replaced line 176 in init.py with this

await asyncio.wait(updates)

The service seems to still work. However, I am no python expert so I'm not entirely sure this is the correct way to fix this.

@sgottscho
Copy link
Author

Thank did the trick.

Thank You

@zanix
Copy link
Collaborator

zanix commented Apr 12, 2023

This was fixed in #48

@zanix zanix closed this as completed Apr 12, 2023
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