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)