mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +02:00
fix commit errors
This commit is contained in:
@@ -124,7 +124,7 @@ class LocationReport(HasHashedPublicKey):
|
||||
|
||||
@property
|
||||
def confidence(self) -> int:
|
||||
"""Confidence of the location of this report. Int between 1 and 3"""
|
||||
"""Confidence of the location of this report. Int between 1 and 3."""
|
||||
# If the payload length is 88, the confidence is the 5th byte, otherwise it's the 6th byte
|
||||
if len(self._payload) == 88:
|
||||
return self.payload[4]
|
||||
|
||||
@@ -17,5 +17,6 @@ def decode_plist(data: bytes) -> Any: # noqa: ANN401
|
||||
return plistlib.loads(data)
|
||||
|
||||
|
||||
def format_hex_byte(byte):
|
||||
def format_hex_byte(byte: int) -> str:
|
||||
"""Format a byte as a two character hex string in uppercase."""
|
||||
return f"{byte:02x}".upper()
|
||||
|
||||
Reference in New Issue
Block a user