Disable too-many-* (#4107)
* Disable too-many-* and too-few-public-methods * Remove globally disabled pylint warnings
This commit is contained in:
1 parent
b910a9917d
commit
be272ac64a
298 files changed
+271
-570
No files matched your search
@@ -65,13 +65,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
hass, name, resource, body_on, body_off, is_on_template, timeout)])
|
||||
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
class RestSwitch(SwitchDevice):
|
||||
"""Representation of a switch that can be toggled using REST."""
|
||||
|
||||
# pylint: disable=too-many-instance-attributes
|
||||
def __init__(self, hass, name, resource, body_on, body_off, is_on_template,
|
||||
timeout):
|
||||
def __init__(self, hass, name, resource, body_on, body_off,
|
||||
is_on_template, timeout):
|
||||
"""Initialize the REST switch."""
|
||||
self._state = None
|
||||
self._hass = hass
|
||||
|
||||
Reference in new issue
Block a user