icloud3 icon indicating copy to clipboard operation
icloud3 copied to clipboard

Blocking stat() calls in the event loop

Open bdraco opened this issue 1 week ago • 5 comments

https://github.com/gcobb321/icloud3/blob/ed917786755a91478ed973d4ed2ec5503acaaed5/custom_components/icloud3/helpers/common.py#L285 https://github.com/gcobb321/icloud3/blob/ed917786755a91478ed973d4ed2ec5503acaaed5/custom_components/icloud3/helpers/common.py#L302

It looks like there are a few places that will do a blocking stat() syscall in this file.

Home Assistant will be able to detect and warn about these in the future.

https://developers.home-assistant.io/docs/asyncio_blocking_operations#stat

bdraco avatar Jun 23 '24 20:06 bdraco