Skip to content

Commit

Permalink
Use kwarg.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 26, 2023
1 parent 36691fa commit 301de05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyplumio/helpers/uid.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def unpack_uid(message: bytearray, offset: int = 0) -> str:
def _base5(data: bytes) -> str:
"""Encode bytes to a base5 encoded string."""
key_string = "0123456789ABCDEFGHIJKLMNZPQRSTUV"
number = int.from_bytes(data, "little")
number = int.from_bytes(data, byteorder="little")
output = ""
while number:
output = key_string[number & 0b00011111] + output
Expand Down

0 comments on commit 301de05

Please sign in to comment.