Skip to content

Improve aio

This merge request consists of the following changes:

  1. Fix race condition where a command is sent too quickly after connecting, causing the light to ignore the command
  2. Replace asyncio.wait_for with asyncio.timeout to avoid unnecessary task switching
  3. Keep a reference to the music task so it won't unexpectedly be garbage collected

Credits to @bdraco

Edited by Jermeia

Merge request reports