More pylint 2 fixes (#15565)

## Description:

More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).

## Checklist:
  - [ ] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
This commit is contained in:
Ville Skyttä authored and Andrey committed 2018-07-20 11:45:20 +03:00
1 parent ea18e06b08
commit 2f7b79764a
242 files changed
+284 -284

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ async def async_setup(hass, config):
return True
class HomeAssistantHTTP(object):
class HomeAssistantHTTP:
"""HTTP server for Home Assistant."""
def __init__(self, hass, api_password,
+1 -1
View File
@@ -107,7 +107,7 @@ async def process_wrong_login(request):
'Banning IP address', NOTIFICATION_ID_BAN)
class IpBan(object):
class IpBan:
"""Represents banned IP address."""
def __init__(self, ip_ban: str, banned_at: datetime = None) -> None:
+1 -1
View File
@@ -21,7 +21,7 @@ from .const import KEY_AUTHENTICATED, KEY_REAL_IP
_LOGGER = logging.getLogger(__name__)
class HomeAssistantView(object):
class HomeAssistantView:
"""Base view for all views."""
url = None