i3-companion: fix bluetooth battery refresh

This commit is contained in:
Vincent Bernat 2022-03-26 19:30:48 +01:00
parent 87b9d9739e
commit 14604234f1

View file

@ -860,7 +860,7 @@ async def bluetooth_status(i3, event, *args):
output[-1] = f"{output[-1]},{icon}"
# Schedule a refresh in 5 minutes
bluetooth_status.scheduled = loop.call_later(
600, bluetooth_status, i3, StartEvent
600, asyncio.create_task, bluetooth_status(i3, StartEvent)
)
except Exception as exc:
logger.info("cannot get battery status: %s", exc)