aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/config.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/fietsboek/config.py b/fietsboek/config.py
index beea820..2d25773 100644
--- a/fietsboek/config.py
+++ b/fietsboek/config.py
@@ -64,6 +64,10 @@ KNOWN_TILE_LAYERS = [
"hiking",
]
+WARNINGS = {
+ "hittekaart.bin": "hittekaart is now used via a Python module. Enable extra `hittekaart` to install the dependency.",
+}
+
class ValidationError(Exception):
"""Exception for malformed configurations.
@@ -203,9 +207,6 @@ class Config(BaseModel):
tile_layers: list[TileLayerConfig] = []
"""Tile layers."""
- hittekaart_bin: str = Field("", alias="hittekaart.bin")
- """Path to the hittekaart binary."""
-
hittekaart_autogenerate: PyramidList = Field([], alias="hittekaart.autogenerate")
"""Overlay maps to automatically generate."""
@@ -350,6 +351,9 @@ def parse(config: dict) -> Config:
for key in keys:
LOGGER.warning("Unknown configuration key: %r", key)
+ if warning := WARNINGS.get(key):
+ LOGGER.warning(warning)
+
return parsed_config