thomluther / anker-solix-api

Python library for Anker Solix API
MIT License
36 stars 10 forks source link

Convert file I/O methods to async methods to avoid warnings in HA integration #103

Closed thomluther closed 1 week ago

thomluther commented 2 weeks ago

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.

thomluther commented 1 week ago

Changed in 2.0.0 for HA integration support