Skip to content

Commit 68d41df

Browse files
authored
Limit hex command length to 8 positions (#26)
1 parent 5221ffa commit 68d41df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elro/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Elro connects P1 API."""
22

3-
__version__ = "0.5.5.2"
3+
__version__ = "0.5.5.3"

examples/socket_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def async_test_socket(self, device_id: int, command_code_hex: str) -> None
4848
attribute_transformer=None,
4949
additional_attributes={
5050
"device_ID": 0,
51-
"device_status": f"{command_code_hex}000000",
51+
"device_status": f"{command_code_hex}00000000"[:8],
5252
},
5353
receive_types=[Command.ANSWER_YES_OR_NO],
5454
content_field="answer_yes_or_no",

0 commit comments

Comments
 (0)