summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-06-02 02:45:48 +0100
committerGitHub <noreply@github.com>2023-06-02 02:45:48 +0100
commitaa33fb00fdba2d7b1e0f4197c2e6b78755b171e9 (patch)
tree57bc05a20db3ca44a06ace24dc6bc3c07db3eaf3 /lib
parent25c16b3adeb15466d75691162763ce062b2c6e64 (diff)
Revert "Add *_MATRIX_LED_COUNT generation/validation (#19515)" (#21109)
This reverts commit 25c16b3adeb15466d75691162763ce062b2c6e64.
Diffstat (limited to 'lib')
-rw-r--r--lib/python/qmk/info.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py
index 6628d825ce..dbd26153d8 100644
--- a/lib/python/qmk/info.py
+++ b/lib/python/qmk/info.py
@@ -55,7 +55,7 @@ def _get_key_left_position(key):
return key['x'] - 0.25 if key.get('h', 1) == 2 and key.get('w', 1) == 1.25 else key['x']
-def _additional_validation(keyboard, info_data): # noqa: C901
+def _additional_validation(keyboard, info_data):
"""Non schema checks
"""
layouts = info_data.get('layouts', {})
@@ -105,14 +105,6 @@ def _additional_validation(keyboard, info_data): # noqa: C901
if not decl.get("aliases", []):
_log_error(info_data, f'Keycode {decl["key"]} has no short form alias')
- # Ensure LED config is somewhat valid
- for feature in ['rgb_matrix', 'led_matrix']:
- if feature in info_data and all(key in info_data[feature] for key in ["layout", "led_count"]):
- layout_count = len(info_data[feature]["layout"])
- led_count = info_data[feature]["led_count"]
- if led_count != layout_count:
- _log_warning(info_data, '%s: mismatch between LED count (%d) and layout items (%d)' % (feature, led_count, layout_count))
-
def _validate(keyboard, info_data):
"""Perform various validation on the provided info.json data