This commit is contained in:
Andrew Scheller
2016-04-08 12:22:23 +01:00
parent 271b86aa45
commit 48dbfbdbff

View File

@@ -239,7 +239,7 @@ class EventsMixin(object):
def inactive_time(self): def inactive_time(self):
""" """
The length of time (in seconds) that the device has been inactive for. The length of time (in seconds) that the device has been inactive for.
When the device is inactive, this is ``None``. When the device is active, this is ``None``.
""" """
if self._inactive_event.wait(0): if self._inactive_event.wait(0):
return time() - self._last_changed return time() - self._last_changed