Revise for clarity, disable pylink check
This commit is contained in:
1 parent
0826ae2742
commit
ef6c209c6f
1 file changed
+4
-1
@@ -22,7 +22,10 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||
import pywemo.discovery as discovery
|
||||
|
||||
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:
|
||||
add_devices_callback([WemoSwitch(device)])
|
||||
|
||||
Reference in new issue
Block a user