Upgrade pylint to 2.1.0 (#15811)
* Upgrade pylint to 2.1.0 * Remove no longer needed pylint disables
This commit is contained in:
1 parent
0c7d46927e
commit
3246b49a45
11 files changed
+3
-17
No files matched your search
@@ -124,7 +124,6 @@ class MinMaxSensor(Entity):
|
||||
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:
|
||||
|
||||
@@ -97,7 +97,6 @@ class StatisticsSensor(Entity):
|
||||
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(
|
||||
|
||||
Reference in new issue
Block a user