Home Assistant 2024.06 introduced more stringent checks for the event loop and issues warnings when blocking read/write methods are used.
Convert all I/O methods to async methods by using the aiofiles python library, which becomes another pre-req for usage of the Api library or HA integration.
Home Assistant 2024.06 introduced more stringent checks for the event loop and issues warnings when blocking read/write methods are used. Convert all I/O methods to async methods by using the aiofiles python library, which becomes another pre-req for usage of the Api library or HA integration.