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
@@ -48,11 +48,9 @@ def get_service(hass, config):
|
||||
)
|
||||
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class MatrixNotificationService(BaseNotificationService):
|
||||
"""Wrapper for the MatrixNotificationClient."""
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
def __init__(self, homeserver, default_room, verify_ssl,
|
||||
username, password):
|
||||
"""Buffer configuration data for send_message."""
|
||||
@@ -94,7 +92,6 @@ def store_token(mx_id, token):
|
||||
handle.write(json.dumps(AUTH_TOKENS))
|
||||
|
||||
|
||||
# pylint: disable=too-many-locals, too-many-arguments
|
||||
def send_message(message, homeserver, target_rooms, verify_tls,
|
||||
username, password):
|
||||
"""Do everything thats necessary to send a message to a Matrix room."""
|
||||
|
||||
Reference in new issue
Block a user