Skip to content

Commit f77e94c

Browse files
committed
Unpack tuple
1 parent db2395c commit f77e94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ble_beacon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _get_struct_index(self, index: int) -> int:
171171
return temp_tuple[index]
172172

173173
def _init_struct(self) -> None:
174-
apple_id_flipped = struct.unpack(">H", struct.pack("<H", _APPLE_COMPANY_ID))
174+
apple_id_flipped = struct.unpack(">H", struct.pack("<H", _APPLE_COMPANY_ID))[0]
175175
self._beacon_data = (
176176
apple_id_flipped,
177177
_IBEACON_TYPE,

0 commit comments

Comments
 (0)