Narrow scope of various pylint inline disables (#15364)
* Narrow scope of various pylint inline disables * Whitespace tweaks
This commit is contained in:
1 parent
78c38749ab
commit
707b7c202d
30 files changed
+52
-75
No files matched your search
@@ -115,15 +115,15 @@ async def async_setup_platform(hass, config, async_add_entities,
|
||||
return
|
||||
|
||||
|
||||
# pylint: disable=import-error, no-member
|
||||
def _setup_bme680(config):
|
||||
"""Set up and configure the BME680 sensor."""
|
||||
from smbus import SMBus
|
||||
from smbus import SMBus # pylint: disable=import-error
|
||||
import bme680
|
||||
|
||||
sensor_handler = None
|
||||
sensor = None
|
||||
try:
|
||||
# pylint: disable=no-member
|
||||
i2c_address = config.get(CONF_I2C_ADDRESS)
|
||||
bus = SMBus(config.get(CONF_I2C_BUS))
|
||||
sensor = bme680.BME680(i2c_address, bus)
|
||||
|
||||
Reference in new issue
Block a user