Since upgrading to 0.62.0, the Asuswrt component isn’t working for me anymore.
Config (working fine since 0.4x.x or so):
device_tracker:
- platform: asuswrt
host: !secret device_tracker_host
username: !secret device_tracker_username
password: !secret device_tracker_password
protocol: telnet
interval_seconds: 10
consider_home: 180
track_new_devices: yes
Error:
2018-01-29 18:44:33 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform asuswrt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/__init__.py", line 162, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 81, in get_scanner
scanner = AsusWrtDeviceScanner(config[DOMAIN])
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 130, in __init__
data = self.get_asuswrt_data()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 169, in get_asuswrt_data
devices.update(self._get_neigh(devices))
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 217, in _get_neigh
old_ip = cur_devices.get(mac, {}).ip or None
AttributeError: 'dict' object has no attribute 'ip'