pylint ignore statement effect in __init__()
This commit is contained in:
parent
474f246508
commit
0c287cd375
1 changed files with 2 additions and 1 deletions
|
@ -185,6 +185,7 @@ class BusyError(Exception):
|
|||
class PN532:
|
||||
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
|
||||
|
||||
# noinspection PyStatementEffect
|
||||
def __init__(self, *, debug=False, reset=None):
|
||||
"""Create an instance of the PN532 class
|
||||
"""
|
||||
|
@ -196,7 +197,7 @@ class PN532:
|
|||
|
||||
try:
|
||||
self._wakeup()
|
||||
self.firmware_version # first time often fails, try 2ce
|
||||
self.firmware_version # first time often fails, try 2ce
|
||||
return
|
||||
except (BusyError, RuntimeError):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue