Skip to content

Commit 364069a

Browse files
committed
lint
1 parent b79c2d5 commit 364069a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def id(self): # pylint: disable=invalid-name,too-many-branches,too-many-return-s
4747
'set, but no FT232H device found')
4848
return FT232H
4949
if os.environ.get('BLINKA_MCP2221'):
50-
import hid
50+
import hid # pylint: disable=import-error
5151
# look for it based on PID/VID
5252
for dev in hid.enumerate():
53-
if dev['vendor_id']==0x04D8 and dev['product_id']==0x00DD:
53+
if dev['vendor_id'] == 0x04D8 and dev['product_id'] == 0x00DD:
5454
return MCP2221
5555
raise RuntimeError('BLINKA_MCP2221 environment variable ' + \
5656
'set, but no MCP2221 device found')

0 commit comments

Comments
 (0)