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:
Ville Skyttä 2021-03-02 10:02:04 +02:00 committed by GitHub
parent 38a2f196b8
commit dc880118a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
217 changed files with 237 additions and 306 deletions

View file

@ -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)