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
|
@ -1,10 +1,8 @@
|
|||
"""The sms gateway to interact with a GSM modem."""
|
||||
import logging
|
||||
|
||||
import gammu # pylint: disable=import-error, no-member
|
||||
from gammu.asyncworker import ( # pylint: disable=import-error, no-member
|
||||
GammuAsyncWorker,
|
||||
)
|
||||
import gammu # pylint: disable=import-error
|
||||
from gammu.asyncworker import GammuAsyncWorker # pylint: disable=import-error
|
||||
|
||||
from homeassistant.core import callback
|
||||
|
||||
|
@ -165,6 +163,6 @@ async def create_sms_gateway(config, hass):
|
|||
gateway = Gateway(worker, hass)
|
||||
await gateway.init_async()
|
||||
return gateway
|
||||
except gammu.GSMError as exc: # pylint: disable=no-member
|
||||
except gammu.GSMError as exc:
|
||||
_LOGGER.error("Failed to initialize, error %s", exc)
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue