Bugfix for DeviceTracker

pull/2/head
Paulus Schoutsen 2013-09-20 06:46:42 -07:00
parent 361a935591
commit 90c343d16b
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class DeviceTracker:
# Because we do not want to have stuff happening when the device does
# not show up for 1 scan beacuse of reboot etc
for device in temp_tracking_devices:
if self.devices_to_track[device]['state'] == STATE_DEVICE_HOME and \
if self.statemachine.get_state(self.devices_to_track[device]['category']).state == STATE_DEVICE_HOME and \
datetime.now() - self.devices_to_track[device]['last_seen'] > TIME_SPAN_FOR_ERROR_IN_SCANNING:
self.set_state(device, STATE_DEVICE_NOT_HOME)