From c128919b5fb002cab0831181f89f19377ad75a8e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 4 Nov 2016 02:40:43 +0100 Subject: [PATCH] Remove globally disabled pylint warnings (#4204) --- homeassistant/__main__.py | 3 +-- homeassistant/components/http.py | 2 +- homeassistant/components/logger.py | 2 +- homeassistant/components/media_player/sonos.py | 1 - homeassistant/components/pilight.py | 1 - homeassistant/components/sensor/glances.py | 1 - homeassistant/components/sensor/hddtemp.py | 1 - homeassistant/util/__init__.py | 2 +- 8 files changed, 4 insertions(+), 9 deletions(-) diff --git a/homeassistant/__main__.py b/homeassistant/__main__.py index e5305245b18..510b98b6bdd 100644 --- a/homeassistant/__main__.py +++ b/homeassistant/__main__.py @@ -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: diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 89e15d50a5b..5886693c64f 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -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 diff --git a/homeassistant/components/logger.py b/homeassistant/components/logger.py index 2e772376ae0..4bf163ff9eb 100644 --- a/homeassistant/components/logger.py +++ b/homeassistant/components/logger.py @@ -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__() diff --git a/homeassistant/components/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index f40058ef883..39b9559aa59 100644 --- a/homeassistant/components/media_player/sonos.py +++ b/homeassistant/components/media_player/sonos.py @@ -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.""" diff --git a/homeassistant/components/pilight.py b/homeassistant/components/pilight.py index 2c92fec3513..e160d074bbe 100644 --- a/homeassistant/components/pilight.py +++ b/homeassistant/components/pilight.py @@ -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. diff --git a/homeassistant/components/sensor/glances.py b/homeassistant/components/sensor/glances.py index 30af601f63b..cadafb8e784 100644 --- a/homeassistant/components/sensor/glances.py +++ b/homeassistant/components/sensor/glances.py @@ -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.""" diff --git a/homeassistant/components/sensor/hddtemp.py b/homeassistant/components/sensor/hddtemp.py index a4308535fe2..1a964a458e2 100644 --- a/homeassistant/components/sensor/hddtemp.py +++ b/homeassistant/components/sensor/hddtemp.py @@ -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.""" diff --git a/homeassistant/util/__init__.py b/homeassistant/util/__init__.py index 69ff5d7a61f..fe769f51129 100644 --- a/homeassistant/util/__init__.py +++ b/homeassistant/util/__init__.py @@ -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__: