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
@@ -129,7 +129,7 @@ def _get_devices(hass, discovery_type):
|
||||
hass.data[DATA_KNX].xknx.devices)))
|
||||
|
||||
|
||||
class KNXModule(object):
|
||||
class KNXModule:
|
||||
"""Representation of KNX Object."""
|
||||
|
||||
def __init__(self, hass, config):
|
||||
@@ -284,7 +284,7 @@ class KNXAutomation():
|
||||
device.actions.append(self.action)
|
||||
|
||||
|
||||
class KNXExposeTime(object):
|
||||
class KNXExposeTime:
|
||||
"""Object to Expose Time/Date object to KNX bus."""
|
||||
|
||||
def __init__(self, xknx, expose_type, address):
|
||||
@@ -308,7 +308,7 @@ class KNXExposeTime(object):
|
||||
self.xknx.devices.add(self.device)
|
||||
|
||||
|
||||
class KNXExposeSensor(object):
|
||||
class KNXExposeSensor:
|
||||
"""Object to Expose HASS entity to KNX bus."""
|
||||
|
||||
def __init__(self, hass, xknx, expose_type, entity_id, address):
|
||||
|
||||
Reference in new issue
Block a user