forked from home-assistant/core
Revise for clarity, disable pylink check
This commit is contained in:
@@ -22,7 +22,10 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
import pywemo.discovery as discovery
|
import pywemo.discovery as discovery
|
||||||
|
|
||||||
if discovery_info is not None:
|
if discovery_info is not None:
|
||||||
device = discovery.device_from_description(discovery_info[2], discovery_info[3])
|
location = discovery_info[2]
|
||||||
|
mac = discovery_info[3]
|
||||||
|
# pylint: disable=too-many-function-args
|
||||||
|
device = discovery.device_from_description(location, mac)
|
||||||
|
|
||||||
if device:
|
if device:
|
||||||
add_devices_callback([WemoSwitch(device)])
|
add_devices_callback([WemoSwitch(device)])
|
||||||
|
Reference in New Issue
Block a user