From 14604234f1cb560b78093e78651aeb40f07754a8 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 26 Mar 2022 19:30:48 +0100 Subject: [PATCH] i3-companion: fix bluetooth battery refresh --- bin/i3-companion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index f060310..a82003b 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -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)