Skip to content

Commit 0384b60

Browse files
committed
Fixed formatting with black
1 parent 71b66b5 commit 0384b60

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

adafruit_platformdetect/board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def id(self) -> Optional[str]:
186186
elif chip_id == chips.GENERIC_X86:
187187
board_id = boards.GENERIC_LINUX_PC
188188
elif chip_id == chips.TDA4VM:
189-
board_id = self._beaglebone_id() or self._tisk_id()
189+
board_id = self._beaglebone_id() or self._tisk_id()
190190
elif chip_id == chips.D1_RISCV:
191191
board_id = self._armbian_id()
192192
elif chip_id == chips.S905X:
@@ -273,7 +273,7 @@ def _beaglebone_id(self) -> Optional[str]:
273273
eeprom_bytes = eeprom.read(16)
274274
except FileNotFoundError:
275275
try:
276-
#Special Case for AI64
276+
# Special Case for AI64
277277
with open("/sys/bus/nvmem/devices/2-00500/nvmem", "rb") as eeprom:
278278
eeprom_bytes = eeprom.read(16)
279279
except FileNotFoundError:
@@ -286,7 +286,7 @@ def _beaglebone_id(self) -> Optional[str]:
286286
# refer to GitHub issue #57 in this repo for more info
287287
if eeprom_bytes == b"\xaaU3\xeeA335BNLT\x1a\x00\x00\x00":
288288
return boards.BEAGLEBONE_GREEN
289-
289+
290290
# BeaglePlay Special Condition
291291
# new Beagle EEPROM IDs are 24 Bit, so we need to verify full range
292292
if eeprom_bytes == b"\xaaU3\xee\x017\x00\x10.\x00BEAGLE":

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,8 @@
384384
# https://github.com/beagleboard/image-builder
385385
# Thanks to zmatt on freenode #beagle for pointers.
386386
_BEAGLEBONE_BOARD_IDS = {
387-
BEAGLE_PLAY:
388-
(
389-
("A0", "7.BEAGLE")
390-
),
391-
BEAGLEBONE_AI64:
392-
(
393-
("B0", "7.BBONEA")
394-
),
387+
BEAGLE_PLAY: (("A0", "7.BEAGLE")),
388+
BEAGLEBONE_AI64: (("B0", "7.BBONEA")),
395389
# Original bone/white:
396390
BEAGLEBONE: (
397391
("A4", "A335BONE00A4"),

0 commit comments

Comments
 (0)