Skip to content

Commit

Permalink
Merge pull request #4 from zweckj/bugfix/message_parsing
Browse files Browse the repository at this point in the history
bugfix: don't continue with parsing on message error
  • Loading branch information
zweckj authored Dec 10, 2024
2 parents 8a6abe7 + 57dad7a commit 21e2c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aioacaia/acaiascale.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ async def on_bluetooth_data_received(
return
except AcaiaMessageTooLong as ex:
_LOGGER.debug("%s: %s", ex.message, ex.bytes_recvd)
return
except AcaiaMessageError as ex:
_LOGGER.warning("%s: %s", ex.message, ex.bytes_recvd)
return

if isinstance(msg, Settings):
self._device_state = AcaiaDeviceState(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "aioacaia"
version = "0.1.10"
version = "0.1.11"
license = { text = "MIT License" }
description = "An async implementation of PyAcaia"
readme = "README.md"
Expand Down

0 comments on commit 21e2c77

Please sign in to comment.