Skip to content

Commit d0e22d0

Browse files
committed
Updating pylint
fixing pylint errors
1 parent 07e8625 commit d0e22d0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def any_udoo_board(self):
421421

422422
def any_asus_tinker_board(self):
423423
"""Check to see if the current board is an ASUS Tinker Board"""
424-
return self.id in boards._ASUS_Tinker_Board
424+
return self.ASUS_Tinker_Board
425425

426426
@property
427427
def any_embedded_linux(self):

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
PYBOARD = "PYBOARD"
2424
NODEMCU = "NODEMCU"
2525
GIANT_BOARD = "GIANT_BOARD"
26+
ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD"
2627

2728
# Clockwork Pi boards
2829
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
@@ -98,8 +99,6 @@
9899
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
99100
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
100101

101-
ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD"
102-
103102
# pylint: enable=bad-whitespace
104103

105104
# OrangePI
@@ -348,7 +347,7 @@
348347
_PINE64_DEV_IDS = (PINE64, PINEBOOK, PINEPHONE)
349348

350349
# ASUS Tinker Board
351-
_ASUS_TINKER_BOARD_DEV_IDS = ASUS_TINKER_BOARD
350+
_ASUS_TINKER_BOARD_DEV_IDS = (ASUS_TINKER_BOARD)
352351

353352
# UDOO
354353
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",)}

bin/detect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@
5959

6060
if detector.board.any_clockwork_pi:
6161
print("Clockwork Pi device detected.")
62+
63+
if detector.board.any_asus_tinker_board:
64+
print("ASUS Tinker Board device detected.")

0 commit comments

Comments
 (0)