read all device features as soon as the application is idle

This commit is contained in:
Daniel Pavel 2012-12-14 19:51:18 +02:00
parent 187c0d2a52
commit 430a2d71e3
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class DeviceStatus(dict):
self._changed(timestamp=timestamp)
# make sure we know all the features of the device
# d.features[:]
if d.features:
d.features[:]
elif len(self) > 0 and timestamp - self.updated > _STATUS_TIMEOUT:
# if the device has been inactive for too long, clear out any known