Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: disable ConfigParser interpolation: causes an exception with unescaped %, we do not use interpolation anyway

frederikcb2969fd3993
diff --git a/scripts/utils/helpers.py b/scripts/utils/helpers.py
index 297f00fd..210e367d 100644
--- a/scripts/utils/helpers.py
+++ b/scripts/utils/helpers.py
@@ -29,7 +29,7 @@ def _load_settings(settings_path='/etc/birdnet/birdnet.conf', force_reload=False
global _settings
if _settings is None or force_reload:
with open(settings_path) as f:
- parser = PHPConfigParser()
+ parser = PHPConfigParser(interpolation=None)
# preserve case
parser.optionxform = lambda option: option
lines = chain(("[top]",), f)