mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 17:15:19 +02:00
Pylint clean up
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user