File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,9 @@ class Adafruit_BMP280_I2C(Adafruit_BMP280): # pylint: disable=invalid-name
437
437
"""
438
438
439
439
def __init__ (self , i2c , address = 0x77 ):
440
- import adafruit_bus_device .i2c_device as i2c_device # pylint: disable=import-outside-toplevel
440
+ from adafruit_bus_device import ( # pylint: disable=import-outside-toplevel
441
+ i2c_device ,
442
+ )
441
443
442
444
self ._i2c = i2c_device .I2CDevice (i2c , address )
443
445
super ().__init__ ()
@@ -504,7 +506,9 @@ class Adafruit_BMP280_SPI(Adafruit_BMP280):
504
506
"""
505
507
506
508
def __init__ (self , spi , cs , baudrate = 100000 ):
507
- import adafruit_bus_device .spi_device as spi_device # pylint: disable=import-outside-toplevel
509
+ from adafruit_bus_device import ( # pylint: disable=import-outside-toplevel
510
+ spi_device ,
511
+ )
508
512
509
513
self ._spi = spi_device .SPIDevice (spi , cs , baudrate = baudrate )
510
514
super ().__init__ ()
You can’t perform that action at this time.
0 commit comments