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

Avoid blocking the event loop #173

Closed
wants to merge 1 commit into from
Closed

Avoid blocking the event loop #173

wants to merge 1 commit into from

Conversation

tyz
Copy link

@tyz tyz commented Feb 20, 2022

time.sleep is a blocking call, use task.sleep instead (#172)

time.sleep is a blocking call, use task.sleep instead (#172)
@thematrixdev
Copy link

Hello. Using the two updated files, there are these error messages.

[2914751896] name 'task' is not defined
09:26:12 – (ERROR) Home Assistant WebSocket API (custom integration)

The-Frame on: Error executing script. Unexpected error for call_service at pos 2: name 'task' is not defined
09:26:12 – (ERROR) Script (custom integration)

Have I missed anything? Thanks.

@jaruba
Copy link
Owner

jaruba commented Jul 16, 2022

@tyz task is indeed undefined in these files, if you fix the PR, I will merge it

@CashWilliams
Copy link

Attempted a fix in #192

@tyz tyz closed this by deleting the head repository Jun 4, 2024
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

Successfully merging this pull request may close these issues.

4 participants