From 65cc0954c8184179233c01ab9ee231f96090e9d4 Mon Sep 17 00:00:00 2001 From: Per Sandstrom Date: Thu, 6 Aug 2015 09:19:23 +0200 Subject: [PATCH] Exception when client not in leases Client can be dropped from leases list from where the status is retreived before it is dropped from the ip neigh list. The client needs a default status. --- homeassistant/components/device_tracker/asuswrt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index e7126d7df91..3566791f99b 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -157,7 +157,8 @@ class AsusWrtDeviceScanner(object): devices[match.group('ip')] = { 'ip': match.group('ip'), 'mac': match.group('mac').upper(), - 'host': match.group('host') + 'host': match.group('host'), + 'status': '' } for neighbor in neighbors: