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:
1 parent
ea18e06b08
commit
2f7b79764a
242 files changed
+284
-284
No files matched your search
@@ -121,7 +121,7 @@ class GreenwaveLight(Light):
|
||||
self._name = bulbs[self._did]['name']
|
||||
|
||||
|
||||
class GatewayData(object):
|
||||
class GatewayData:
|
||||
"""Handle Gateway data and limit updates."""
|
||||
|
||||
def __init__(self, host, token):
|
||||
|
||||
@@ -204,7 +204,7 @@ def merge_hsbk(base, change):
|
||||
return [b if c is None else c for b, c in zip(base, change)]
|
||||
|
||||
|
||||
class LIFXManager(object):
|
||||
class LIFXManager:
|
||||
"""Representation of all known LIFX entities."""
|
||||
|
||||
def __init__(self, hass, async_add_devices):
|
||||
|
||||
@@ -58,7 +58,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
lifx_library.probe()
|
||||
|
||||
|
||||
class LIFX(object):
|
||||
class LIFX:
|
||||
"""Representation of a LIFX light."""
|
||||
|
||||
def __init__(self, add_devices_callback, server_addr=None,
|
||||
|
||||
@@ -12,7 +12,7 @@ from homeassistant.components.light import (
|
||||
ATTR_TRANSITION, SUPPORT_BRIGHTNESS, SUPPORT_COLOR_TEMP, SUPPORT_COLOR,
|
||||
SUPPORT_TRANSITION, SUPPORT_WHITE_VALUE, DOMAIN, Light)
|
||||
from homeassistant.components import zwave
|
||||
from homeassistant.components.zwave import async_setup_platform # noqa # pylint: disable=unused-import
|
||||
from homeassistant.components.zwave import async_setup_platform # noqa pylint: disable=unused-import
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
import homeassistant.util.color as color_util
|
||||
|
||||
|
||||
Reference in new issue
Block a user