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