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:
|
class PN532:
|
||||||
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
|
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
|
||||||
|
|
||||||
|
# noinspection PyStatementEffect
|
||||||
def __init__(self, *, debug=False, reset=None):
|
def __init__(self, *, debug=False, reset=None):
|
||||||
"""Create an instance of the PN532 class
|
"""Create an instance of the PN532 class
|
||||||
"""
|
"""
|
||||||
|
@ -196,7 +197,7 @@ class PN532:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._wakeup()
|
self._wakeup()
|
||||||
self.firmware_version # first time often fails, try 2ce
|
self.firmware_version # first time often fails, try 2ce
|
||||||
return
|
return
|
||||||
except (BusyError, RuntimeError):
|
except (BusyError, RuntimeError):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue