ha-samsungtv-tizen
ha-samsungtv-tizen copied to clipboard
Avoid blocking the event loop
time.sleep is a blocking call, use task.sleep instead (#172)
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.
@tyz task
is indeed undefined in these files, if you fix the PR, I will merge it
Attempted a fix in #192