Skip to content

Commit

Permalink
Limit hex command length to 8 positions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh authored Jan 3, 2024
1 parent 5221ffa commit 68d41df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elro/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Elro connects P1 API."""

__version__ = "0.5.5.2"
__version__ = "0.5.5.3"
2 changes: 1 addition & 1 deletion examples/socket_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def async_test_socket(self, device_id: int, command_code_hex: str) -> None
attribute_transformer=None,
additional_attributes={
"device_ID": 0,
"device_status": f"{command_code_hex}000000",
"device_status": f"{command_code_hex}00000000"[:8],
},
receive_types=[Command.ANSWER_YES_OR_NO],
content_field="answer_yes_or_no",
Expand Down

0 comments on commit 68d41df

Please sign in to comment.