mirror of
https://github.com/n0mjs710/HBlink4.git
synced 2026-11-08 12:26:31 +00:00
fix name reference
This commit is contained in:
1 parent
cb921f1131
commit
e3ab4b1e07
1 file changed
+9
-2
@@ -94,8 +94,15 @@ class RepeaterMatcher:
|
||||
"""
|
||||
def __init__(self, config: Dict[str, Any]):
|
||||
self.blacklist = self._parse_blacklist(config.get('blacklist', {"patterns": []}))
|
||||
self.patterns = self._parse_patterns(config['repeaters']['patterns'])
|
||||
self.default_config = RepeaterConfig(**config['repeaters']['default'])
|
||||
repeater_config = config.get('repeater_configurations', config.get('repeaters', {}))
|
||||
self.patterns = self._parse_patterns(repeater_config.get('patterns', []))
|
||||
self.default_config = RepeaterConfig(**repeater_config.get('default', {
|
||||
"enabled": True,
|
||||
"timeout": 30,
|
||||
"passphrase": "passw0rd",
|
||||
"talkgroups": [8],
|
||||
"description": "Default Repeater Configuration"
|
||||
}))
|
||||
|
||||
def _parse_blacklist(self, blacklist_config: Dict[str, Any]) -> List[BlacklistMatch]:
|
||||
"""Parse blacklist patterns from config"""
|
||||
|
||||
Reference in new issue
Block a user