J. Nick Koston
J. Nick Koston
It looks like the open was fixed but the stat call via exists remains
We haven't merged the check for stat calls yet so only open is being checked.
If you want to check the rest of the code, you can use this branch https://github.com/home-assistant/core/pull/120273
Fix for Home Assistant is https://github.com/home-assistant/core/pull/126882
I'm not sure how likely it would be that its not cached locally.. but if its missing from `/etc/hosts` it could have to resolve it
Actually it appears quite likely since the first system I tested it on did blocking I/O `strace python -c "import socket; socket.getfqdn()'` ``` open("/etc/hosts", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC)...
I haven't come up with a solution to this that isn't a breaking change to remove the blocking method
Probably need to add a constraint for a minimum aiofiles version to prevent custom integrations from downgrading it to a non-working older version.
Thanks @jrhillery
Please add compile time tests in esphome/tests/components/uart