Pylint clean up

This commit is contained in:
Tom Harris
2018-02-19 17:17:37 -05:00
parent 15e9eef13c
commit fd3240edf3
4 changed files with 14 additions and 14 deletions

View File

@@ -28,13 +28,13 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
device = plm.devices[address]
state_key = device_info['state_key']
stateName = device.states[state_key].name
state_name = device.states[state_key].name
if stateName in ['lightOnOff', 'outletTopOnOff', 'outletBottomOnOff']:
if state_name in ['lightOnOff', 'outletTopOnOff', 'outletBottomOnOff']:
state_list.append(InsteonPLMSwitchDevice(hass,
device,
state_key))
elif stateName == 'openClosedRelay':
elif state_name == 'openClosedRelay':
state_list.append(InsteonPLMOpenClosedDevice(hass,
device,
state_key))