From eeb954791f5f30c0ee8f482e0349ba13008d05b2 Mon Sep 17 00:00:00 2001 From: Emily Love Watson Date: Fri, 24 Jan 2025 15:36:22 -0600 Subject: [PATCH] Fix missing await --- pykulersky/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykulersky/light.py b/pykulersky/light.py index e942004..ba47a06 100644 --- a/pykulersky/light.py +++ b/pykulersky/light.py @@ -95,7 +95,7 @@ async def _do_set_color(self, r, g, b, w): # to zero. If the light was off, first apply the color with a # zero white channel, then write the actual color we want. color_string = b'\x02' + bytes((r, g, b, 0)) - self._write(CHARACTERISTIC_COMMAND_COLOR, color_string) + await self._write(CHARACTERISTIC_COMMAND_COLOR, color_string) color_string = b'\x02' + bytes((r, g, b, w)) await self._write(CHARACTERISTIC_COMMAND_COLOR, color_string)