jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
39 stars 8 forks source link

Suppress possible asyncio.CancelledError on sleep task #86

Closed jaroschek closed 4 months ago

jaroschek commented 4 months ago

The issue #84 showed a possible problem during the throttling of the api calls. The asyncio.sleep() task can be cancelled and would raise a CancelledError.

After some research the most common solution in this case would be to just suppress this error.