ha-samsungtv-tizen icon indicating copy to clipboard operation
ha-samsungtv-tizen copied to clipboard

Avoid blocking the event loop

Open tyz opened this issue 3 years ago • 3 comments

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

tyz avatar Feb 20 '22 13:02 tyz

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.

thematrixdev avatar Mar 01 '22 01:03 thematrixdev

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

jaruba avatar Jul 16 '22 09:07 jaruba

Attempted a fix in #192

CashWilliams avatar Nov 09 '22 04:11 CashWilliams