Skip to content

Commit

Permalink
pybricks.iodevices: Make LWP3 write awaitable.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Nov 16, 2023
1 parent 91bc9a5 commit fd61866
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

## Unreleased

## Added
- Enabled tilt and orientation config for `MoveHub()`.

## Fixed
- Fixed missing awaitable for `Remote.light` and LWP3 writes.

## 3.3.0b9 - 2023-10-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/pybricks/iodevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def name(self, *args):
this method returns the current name.
"""

def write(self, buf: bytes) -> None:
def write(self, buf: bytes) -> MaybeAwaitable:
"""write(buf)
Sends a message to the remote hub.
Expand Down

0 comments on commit fd61866

Please sign in to comment.