Closed marcoCasamento closed 1 year ago
Hi, i'm having the same issue. It slow down interface and i cannot use HA anymore since i reboot
It's almost certainly because your pyscript
code is calling time.sleep()
or some similar function, either directly or inside a package that your code is calling.
All pyscript
code must be non-blocking, and async versions of functions should be used in place of functions that would block (eg: http requests etc). There is a function task.sleep()
that can be safely used instead of time.sleep()
; see the docs.
Sometimes HA become unresponsive until I manually restart it, and I found in the log many lines like the following one:
Is there something I can do to debug the issue ?