Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion homeassistant/components/binary_sensor/bayesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def __init__(self, name, prior, observations, probability_threshold,
def async_added_to_hass(self):
"""Call when entity about to be added."""
@callback
# pylint: disable=invalid-name
def async_threshold_sensor_state_listener(entity, old_state,
new_state):
"""Handle sensor state changes."""
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/binary_sensor/threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def __init__(self, hass, entity_id, name, lower, upper, hysteresis,
self._state = False
self.sensor_value = None

# pylint: disable=invalid-name
@callback
def async_threshold_sensor_state_listener(
entity, old_state, new_state):
Expand Down
3 changes: 0 additions & 3 deletions homeassistant/components/calendar/todoist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
CONF_PROJECT_LABEL_WHITELIST = 'labels'
CONF_PROJECT_WHITELIST = 'include_projects'

# https://github.com/PyCQA/pylint/pull/2320
# pylint: disable=fixme

# Calendar Platform: Does this calendar event last all day?
ALL_DAY = 'all_day'
# Attribute: All tasks in this project
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/light/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ def _mean_tuple(*args):
return tuple(sum(l) / len(l) for l in zip(*args))


# https://github.com/PyCQA/pylint/issues/1831
# pylint: disable=bad-whitespace
def _reduce_attribute(states: List[State],
key: str,
default: Optional[Any] = None,
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/sensor/min_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def __init__(self, hass, entity_ids, name, sensor_type, round_digits):
self.states = {}

@callback
# pylint: disable=invalid-name
def async_min_max_sensor_state_listener(entity, old_state, new_state):
"""Handle the sensor state changes."""
if new_state.state is None or new_state.state in STATE_UNKNOWN:
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/sensor/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def __init__(self, hass, entity_id, name, sampling_size, max_age):
hass.async_add_job(self._initialize_from_database)

@callback
# pylint: disable=invalid-name
def async_stats_sensor_state_listener(entity, old_state, new_state):
"""Handle the sensor state changes."""
self._unit_of_measurement = new_state.attributes.get(
Expand Down
1 change: 0 additions & 1 deletion homeassistant/helpers/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def render_with_possible_json_value(self, value, error_value=_SENTINEL):
self.hass.loop, self.async_render_with_possible_json_value, value,
error_value).result()

# pylint: disable=invalid-name
def async_render_with_possible_json_value(self, value,
error_value=_SENTINEL):
"""Render template with value exposed.
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/scripts/benchmark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def listener(_):


@benchmark
# pylint: disable=invalid-name
async def async_million_time_changed_helper(hass):
"""Run a million events through time changed helper."""
count = 0
Expand Down Expand Up @@ -109,7 +108,6 @@ def listener(_):


@benchmark
# pylint: disable=invalid-name
async def async_million_state_changed_helper(hass):
"""Run a million events through state changed helper."""
count = 0
Expand Down
4 changes: 1 addition & 3 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# too-few-* - same as too-many-*
# abstract-method - with intro of async there are always methods missing
# inconsistent-return-statements - doesn't handle raise
# useless-return - https://github.com/PyCQA/pylint/issues/2300
# not-an-iterable - https://github.com/PyCQA/pylint/issues/2311
disable=
abstract-class-little-used,
Expand All @@ -33,8 +32,7 @@ disable=
too-many-public-methods,
too-many-return-statements,
too-many-statements,
unused-argument,
useless-return
unused-argument

[REPORTS]
reports=no
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ flake8==3.5
mock-open==1.3.1
mypy==0.620
pydocstyle==1.1.1
pylint==2.0.1
pylint==2.1.0
pytest-aiohttp==0.3.0
pytest-cov==2.5.1
pytest-sugar==0.9.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ flake8==3.5
mock-open==1.3.1
mypy==0.620
pydocstyle==1.1.1
pylint==2.0.1
pylint==2.1.0
pytest-aiohttp==0.3.0
pytest-cov==2.5.1
pytest-sugar==0.9.1
Expand Down