Chore: Make pylint happy
This commit is contained in:
parent
7fcf46bdc3
commit
47ce0add1d
1 changed files with 3 additions and 2 deletions
|
|
@ -483,11 +483,12 @@ class Board:
|
||||||
if "OrangePi 4" in board_value:
|
if "OrangePi 4" in board_value:
|
||||||
return boards.ORANGE_PI_4
|
return boards.ORANGE_PI_4
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _ameridroid_id(self) -> Optional[str]:
|
def _ameridroid_id(self) -> Optional[str]:
|
||||||
board_value = self.detector.get_device_model().upper()
|
board_value = self.detector.get_device_model().upper()
|
||||||
if "INDIEDROID NOVA" in board_value:
|
if "INDIEDROID NOVA" in board_value:
|
||||||
return boards.INDIEDROID_NOVA
|
return boards.INDIEDROID_NOVA
|
||||||
|
return None
|
||||||
|
|
||||||
def _orange_pi_id(self) -> Optional[str]:
|
def _orange_pi_id(self) -> Optional[str]:
|
||||||
board_value = self.detector.get_device_model()
|
board_value = self.detector.get_device_model()
|
||||||
|
|
@ -947,7 +948,7 @@ class Board:
|
||||||
def any_beaglebone(self) -> bool:
|
def any_beaglebone(self) -> bool:
|
||||||
"""Check whether the current board is any Beaglebone-family system."""
|
"""Check whether the current board is any Beaglebone-family system."""
|
||||||
return self.id in boards._BEAGLEBONE_IDS
|
return self.id in boards._BEAGLEBONE_IDS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def any_ameridroid(self) -> bool:
|
def any_ameridroid(self) -> bool:
|
||||||
"""Check whether the current board is any Ameridroid device."""
|
"""Check whether the current board is any Ameridroid device."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue