X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=base_presence.py;h=fa035fd28f5645147dc0b5f68e2ee6dfe9589f88;hb=a3eb24ea374a7f231e595c1a6e2c8e49d482c594;hp=ad852f9f7ebce82d5a76c6d7f1436a78670489e7;hpb=31c81f6539969a5eba864d3305f9fb7bf716a367;p=python_utils.git diff --git a/base_presence.py b/base_presence.py index ad852f9..fa035fd 100755 --- a/base_presence.py +++ b/base_presence.py @@ -69,9 +69,7 @@ class PresenceDetection(object): self.run_location = site_config.get_location() logger.debug(f"run_location is {self.run_location}") self.weird_mac_at_cabin = False - self.location_ts_by_mac: Dict[ - Location, Dict[str, datetime.datetime] - ] = defaultdict(dict) + self.location_ts_by_mac: Dict[Location, Dict[str, datetime.datetime]] = defaultdict(dict) self.names_by_mac: Dict[str, str] = {} self.dark_locations: Set[Location] = set() self.last_update: Optional[datetime.datetime] = None @@ -200,9 +198,7 @@ class PresenceDetection(object): def where_is_person_now(self, name: Person) -> Location: self.maybe_update() if len(self.dark_locations) > 0: - msg = ( - f"Can't see {self.dark_locations} right now; answer confidence impacted" - ) + msg = f"Can't see {self.dark_locations} right now; answer confidence impacted" logger.warning(msg) warnings.warn(msg, stacklevel=2) logger.debug(f'Looking for {name}...')