mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45: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]
|
device = plm.devices[address]
|
||||||
state_key = device_info['state_key']
|
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,
|
state_list.append(InsteonPLMSwitchDevice(hass,
|
||||||
device,
|
device,
|
||||||
state_key))
|
state_key))
|
||||||
elif stateName == 'openClosedRelay':
|
elif state_name == 'openClosedRelay':
|
||||||
state_list.append(InsteonPLMOpenClosedDevice(hass,
|
state_list.append(InsteonPLMOpenClosedDevice(hass,
|
||||||
device,
|
device,
|
||||||
state_key))
|
state_key))
|
||||||
|
Reference in New Issue
Block a user