mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Revise for clarity, disable pylink check
This commit is contained in:
parent
0826ae2742
commit
ef6c209c6f
@ -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)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user