From 0d8fb992b12e9eea86716753fd2f302b1addb458 Mon Sep 17 00:00:00 2001 From: Tom Harris Date: Mon, 19 Feb 2018 21:35:23 -0500 Subject: [PATCH] 3.4 lint clean up --- homeassistant/components/insteon_plm.py | 4 ++-- homeassistant/components/switch/insteon_plm.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/insteon_plm.py b/homeassistant/components/insteon_plm.py index 9cfb0c7b32d..5c3a4bee769 100644 --- a/homeassistant/components/insteon_plm.py +++ b/homeassistant/components/insteon_plm.py @@ -121,6 +121,7 @@ State = collections.namedtuple('Product', 'stateType platform') class IPDB(object): """Embodies the INSTEON Product Database static data and access methods.""" + def __init__(self): """Create the INSTEON Product Database (IPDB).""" from insteonplm.states.onOff import (OnOffSwitch, @@ -159,8 +160,7 @@ class IPDB(object): yield product def __getitem__(self, key): - """Return a Home Assistant platform from an INSTEON state type. - """ + """Return a Home Assistant platform from an INSTEON state type.""" for state in self.states: if isinstance(key, state.stateType): return state diff --git a/homeassistant/components/switch/insteon_plm.py b/homeassistant/components/switch/insteon_plm.py index 9ac1e9fc94f..95b0f5ba9ad 100644 --- a/homeassistant/components/switch/insteon_plm.py +++ b/homeassistant/components/switch/insteon_plm.py @@ -125,7 +125,7 @@ class InsteonPLMOpenClosedDevice(SwitchDevice): @property def name(self): - """Return the name of the node. (used for Entity_ID)""" + """Return the name of the node (used for Entity_ID).""" name = '' if self._insteon_device_state.group == 0x01: name = self._insteon_device.id