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

+3 -3
View File
@@ -462,7 +462,7 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType) -> bool:
@attr.s(slots=True, frozen=True)
class Subscription(object):
class Subscription:
"""Class to hold data about an active subscription."""
topic = attr.ib(type=str)
@@ -472,7 +472,7 @@ class Subscription(object):
@attr.s(slots=True, frozen=True)
class Message(object):
class Message:
"""MQTT Message."""
topic = attr.ib(type=str)
@@ -481,7 +481,7 @@ class Message(object):
retain = attr.ib(type=bool, default=False)
class MQTT(object):
class MQTT:
"""Home Assistant MQTT client."""
def __init__(self, hass: HomeAssistantType, broker: str, port: int,