read all device features as soon as the application is idle
This commit is contained in:
parent
187c0d2a52
commit
430a2d71e3
|
|
@ -169,7 +169,8 @@ class DeviceStatus(dict):
|
||||||
self._changed(timestamp=timestamp)
|
self._changed(timestamp=timestamp)
|
||||||
|
|
||||||
# make sure we know all the features of the device
|
# 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:
|
elif len(self) > 0 and timestamp - self.updated > _STATUS_TIMEOUT:
|
||||||
# if the device has been inactive for too long, clear out any known
|
# if the device has been inactive for too long, clear out any known
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue