Skip to content

Commit

Permalink
Fix missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Jan 24, 2025
1 parent ac51412 commit eeb9547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykulersky/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eeb9547

Please sign in to comment.