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,7 +1,7 @@
|
|||
"""Support for SMS dongle sensor."""
|
||||
import logging
|
||||
|
||||
import gammu # pylint: disable=import-error, no-member
|
||||
import gammu # pylint: disable=import-error
|
||||
|
||||
from homeassistant.const import DEVICE_CLASS_SIGNAL_STRENGTH, SIGNAL_STRENGTH_DECIBELS
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
@ -71,7 +71,7 @@ class GSMSignalSensor(Entity):
|
|||
"""Get the latest data from the modem."""
|
||||
try:
|
||||
self._state = await self._gateway.get_signal_quality_async()
|
||||
except gammu.GSMError as exc: # pylint: disable=no-member
|
||||
except gammu.GSMError as exc:
|
||||
_LOGGER.error("Failed to read signal quality: %s", exc)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue