Remove globally disabled pylint warnings (#4204)

This commit is contained in:
Fabian Affolter 2016-11-04 02:40:43 +01:00 committed by Paulus Schoutsen
parent e5d69feb93
commit c128919b5f
8 changed files with 4 additions and 9 deletions

View file

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

View file

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

View file

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

View file

@ -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."""

View file

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

View file

@ -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."""

View file

@ -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."""

View file

@ -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__: