Skip to content

Commit c3e7119

Browse files
committed
pylint disable added
1 parent 000c39d commit c3e7119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_mma8451.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
import ustruct as struct
3535

3636
from micropython import const
37-
38-
import adafruit_bus_device.i2c_device as i2c_dev
37+
# pylint: disable=useless-import-alias
38+
import adafruit_bus_device.i2c_device as i2c_device
3939

4040

4141
__version__ = "0.0.0-auto.0"
@@ -94,7 +94,7 @@ class MMA8451:
9494
_BUFFER = bytearray(6)
9595

9696
def __init__(self, i2c, *, address=_MMA8451_DEFAULT_ADDRESS):
97-
self._device = i2c_dev.I2CDevice(i2c, address)
97+
self._device = i2c_device.I2CDevice(i2c, address)
9898
# Verify device ID.
9999
if self._read_u8(_MMA8451_REG_WHOAMI) != 0x1A:
100100
raise RuntimeError('Failed to find MMA8451, check wiring!')

0 commit comments

Comments
 (0)