日志输出如下:
2019-06-24 22:02:44 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 69, in async_setup_legacy
self.platform.get_scanner, hass, {DOMAIN: self.config})
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/netgear/device_tracker.py", line 45, in get_scanner
devices, excluded_devices, accesspoints)
File "/usr/src/homeassistant/homeassistant/components/netgear/device_tracker.py", line 67, in __init__
results = self.get_attached_devices()
File "/usr/src/homeassistant/homeassistant/components/netgear/device_tracker.py", line 152, in get_attached_devices
return self._api.get_attached_devices()
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 136, in get_attached_devices
"GetAttachDevice")
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 354, in _make_request
if not self.login():
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 89, in login
v1_result = self.login_v1()
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 121, in login_v1
None, body, False)
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 375, in _make_request
data=message, timeout=30, verify=False)