+ logger.warning("Can't see the cabin right now; presence detection impared.")
+ self.dark_locations.add(Location.CABIN)
+
+ def update_from_cabin(self) -> None:
+ from exec_utils import cmd_with_timeout
+ try:
+ persisted_macs = config.config['presence_macs_file']
+ except KeyError:
+ persisted_macs = '/home/scott/cron/persisted_mac_addresses.txt'
+ self.read_persisted_macs_file(persisted_macs, Location.CABIN)
+ try:
+ raw = cmd_with_timeout(
+ timeout_seconds=10.0,