Skip to content

Commit 60c998c

Browse files
committed
pylint: disable added
1 parent 5724581 commit 60c998c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_mpl3115a2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
import ustruct as struct
3636
except ImportError:
3737
import struct
38-
39-
import adafruit_bus_device.i2c_device as i2c_dev
38+
# pylint: disable=useless-import-alias
39+
import adafruit_bus_device.i2c_device as i2c_device
4040

4141

4242
__version__ = "0.0.0-auto.0"
@@ -111,7 +111,7 @@ class MPL3115A2:
111111
_BUFFER = bytearray(4)
112112

113113
def __init__(self, i2c, *, address=_MPL3115A2_ADDRESS):
114-
self._device = i2c_dev.I2CDevice(i2c, address)
114+
self._device = i2c_device.I2CDevice(i2c, address)
115115
# Validate the chip ID.
116116
if self._read_u8(_MPL3115A2_WHOAMI) != 0xC4:
117117
raise RuntimeError('Failed to find MPL3115A2, check your wiring!')

0 commit comments

Comments
 (0)