projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up histogram __repr__
[python_utils.git]
/
waitable_presence.py
diff --git
a/waitable_presence.py
b/waitable_presence.py
index cd5501da59fc3e3ddd1022f8fd87cfba756aeffc..d54511ff362bc45ceaf5c95e15174523f0327be9 100644
(file)
--- a/
waitable_presence.py
+++ b/
waitable_presence.py
@@
-20,9
+20,7
@@
import state_tracker
logger = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
-class WaitablePresenceDetectorWithMemory(
- state_tracker.WaitableAutomaticStateTracker
-):
+class WaitablePresenceDetectorWithMemory(state_tracker.WaitableAutomaticStateTracker):
"""
This is a waitable class that keeps a PresenceDetector internally
and periodically polls it to detect changes in presence in a
"""
This is a waitable class that keeps a PresenceDetector internally
and periodically polls it to detect changes in presence in a
@@
-88,9
+86,7
@@
class WaitablePresenceDetectorWithMemory(
def check_detector(self) -> None:
if len(self.detector.dark_locations) > 0:
def check_detector(self) -> None:
if len(self.detector.dark_locations) > 0:
- logger.debug(
- 'PresenceDetector is incomplete; trying to reinitialize...'
- )
+ logger.debug('PresenceDetector is incomplete; trying to reinitialize...')
self.detector = base_presence.PresenceDetection()
def is_someone_home(self) -> Tuple[bool, datetime.datetime]:
self.detector = base_presence.PresenceDetection()
def is_someone_home(self) -> Tuple[bool, datetime.datetime]: