+ """
+ Returns location as an enum instead of a string.
+
+ >>> from type.locations import Location
+ >>> location = get_location()
+ >>> location == Location.HOUSE or location == Location.CABIN
+ True
+
+ """
+ return get_config().location
+
+
+def is_anyone_present_wrapper(location: Location):
+ import base_presence
+ p = base_presence.PresenceDetection()
+ return p.is_anyone_in_location_now(location)
+
+
+def get_config():
+ """
+ Get a configuration dataclass with information that is
+ site-specific including the current running location.
+
+ >>> cfg = get_config()
+ >>> cfg.location_name == 'HOUSE' or cfg.location_name == 'CABIN'
+ True
+
+ """
+ hostname = platform.node()
+ try:
+ location_override = config.config['site_config_override_location']
+ except KeyError:
+ location_override = 'NONE'
+ if location_override == 'NONE':