Ensure keyboard aliases do not point to themselves

This commit is contained in:
zvecr 2025-07-17 00:42:12 +01:00
parent f0b04b2a3a
commit 3a025f41e0

View File

@ -32,6 +32,10 @@ def ci_validate_aliases(cli):
success = True
for alias in aliases.keys():
target = aliases[alias].get('target', None)
if alias == target:
cli.log.error(f'Keyboard alias {alias} should not point to itself')
success = False
if not _target_keyboard_exists(target):
cli.log.error(f'Keyboard alias {alias} has a target that doesn\'t exist: {target}')
success = False