LenzGr / pytalent-monitor

A Python Script to gather some data from the Talent Monitoring REST API
MIT License
6 stars 2 forks source link

Refactored to perform asynchronous requests. #9

Closed StephanU closed 6 months ago

StephanU commented 6 months ago

HomeAssistant integrations must not perform blocking I/O or network operations. see e.g. here Instead, asyncio needs to be used.

This PR refactores the script to use asyncio/aiohttp for requesting the API.

LenzGr commented 6 months ago

Nice work! Thanks a lot for your support @StephanU - I am grateful for your contributions.