From 4bbcc22145acf86bf15fe97fb323aa2465b07721 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 20 Feb 2024 15:28:18 +0100 Subject: [PATCH] fix: Add missing config --- src/inet_nm/config.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/inet_nm/config.py b/src/inet_nm/config.py index 2197d3c..b7c9ae3 100644 --- a/src/inet_nm/config.py +++ b/src/inet_nm/config.py @@ -255,6 +255,21 @@ class LocationConfig(_ConfigFile): _LOAD_TYPE = dict +class LocationCache(_ConfigFile): + """Class for handling the location cache. + + + Args: + config_dir: Directory for the configuration files. + + Attributes: + file_path (Path): Path to the env configuration file. + """ + + _FILENAME = "location_cache.json" + _LOAD_TYPE = list + + def get_default_path() -> Path: """ Return the default path for the configuration files.