Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups * Remove outdated pylint bug references * Add flake8-noqa config and note to run it every now and then * Add codes to noqa's * Unused noqa cleanups
This commit is contained in:
parent
38a2f196b8
commit
dc880118a4
217 changed files with 237 additions and 306 deletions
|
@ -4,7 +4,7 @@ import threading
|
|||
from time import monotonic, sleep
|
||||
|
||||
import bme680 # pylint: disable=import-error
|
||||
from smbus import SMBus # pylint: disable=import-error
|
||||
from smbus import SMBus
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
|
@ -131,7 +131,6 @@ def _setup_bme680(config):
|
|||
sensor_handler = None
|
||||
sensor = None
|
||||
try:
|
||||
# pylint: disable=no-member
|
||||
i2c_address = config[CONF_I2C_ADDRESS]
|
||||
bus = SMBus(config[CONF_I2C_BUS])
|
||||
sensor = bme680.BME680(i2c_address, bus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue