projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More cleanup.
[python_utils.git]
/
waitable_presence.py
diff --git
a/waitable_presence.py
b/waitable_presence.py
index 46d7cbe04898c18cd72019c32c4dd1e5545c322e..9247a67891307fb9b93e5695df68347577f86c9b 100644
(file)
--- a/
waitable_presence.py
+++ b/
waitable_presence.py
@@
-74,7
+74,7
@@
class WaitablePresenceDetectorWithMemory(state_tracker.WaitableAutomaticStateTra
raise Exception(f'Unknown update type {update_id} in {__file__}')
def poll_presence(self, now: datetime.datetime) -> None:
raise Exception(f'Unknown update type {update_id} in {__file__}')
def poll_presence(self, now: datetime.datetime) -> None:
- logger.debug(
f'Checking presence in {self.location} now...'
)
+ logger.debug(
'Checking presence in %s now...', self.location
)
self.detector.update()
if self.detector.is_anyone_in_location_now(self.location):
self.someone_is_home = True
self.detector.update()
if self.detector.is_anyone_in_location_now(self.location):
self.someone_is_home = True