Remove globally disabled pylint warnings (#4204)
This commit is contained in:
parent
e5d69feb93
commit
c128919b5f
8 changed files with 4 additions and 9 deletions
|
@ -45,8 +45,7 @@ def monkey_patch_asyncio():
|
|||
See https://bugs.python.org/issue26617 for details of the Python
|
||||
bug.
|
||||
"""
|
||||
# pylint: disable=no-self-use, too-few-public-methods, protected-access
|
||||
# pylint: disable=bare-except
|
||||
# pylint: disable=no-self-use, protected-access, bare-except
|
||||
import asyncio.tasks
|
||||
|
||||
class IgnoreCalls:
|
||||
|
|
|
@ -166,7 +166,7 @@ def setup(hass, config):
|
|||
class GzipFileSender(FileSender):
|
||||
"""FileSender class capable of sending gzip version if available."""
|
||||
|
||||
# pylint: disable=invalid-name, too-few-public-methods
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
development = False
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ CONFIG_SCHEMA = vol.Schema({
|
|||
class HomeAssistantLogFilter(logging.Filter):
|
||||
"""A log filter."""
|
||||
|
||||
# pylint: disable=no-init,too-few-public-methods
|
||||
# pylint: disable=no-init
|
||||
def __init__(self, logfilter):
|
||||
"""Initialize the filter."""
|
||||
super().__init__()
|
||||
|
|
|
@ -234,7 +234,6 @@ def _parse_timespan(timespan):
|
|||
reversed(timespan.split(':'))))
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class _ProcessSonosEventQueue():
|
||||
"""Queue like object for dispatching sonos events."""
|
||||
|
||||
|
|
|
@ -120,7 +120,6 @@ def setup(hass, config):
|
|||
return True
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class CallRateDelayThrottle(object):
|
||||
"""Helper class to provide service call rate throttling.
|
||||
|
||||
|
|
|
@ -149,7 +149,6 @@ class GlancesSensor(Entity):
|
|||
self.rest.update()
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class GlancesData(object):
|
||||
"""The class for handling the data retrieval."""
|
||||
|
||||
|
|
|
@ -101,7 +101,6 @@ class HddTempSensor(Entity):
|
|||
self._state = STATE_UNKNOWN
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class HddTempData(object):
|
||||
"""Get the latest data from HDDTemp and update the states."""
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ def get_random_string(length=10):
|
|||
class OrderedEnum(enum.Enum):
|
||||
"""Taken from Python 3.4.0 docs."""
|
||||
|
||||
# pylint: disable=no-init, too-few-public-methods
|
||||
# pylint: disable=no-init
|
||||
def __ge__(self, other):
|
||||
"""Return the greater than element."""
|
||||
if self.__class__ is other.__class__:
|
||||
|
|
Loading…
Add table
Reference in a new issue