format fingerprints: fix empty FW versions (#31230)

fix
old-commit-hash: c2ee07290721ef0317ef49021f95e71016222bc1
This commit is contained in:
Shane Smiskol
2024-01-30 05:07:00 -06:00
committed by GitHub
parent a2db032930
commit a5a41e38d0
2 changed files with 4 additions and 4 deletions

View File

@@ -55,4 +55,5 @@ FINGERPRINTS = {
}],
}
FW_VERSIONS: dict[str, dict[tuple, list[bytes]]] = {}
FW_VERSIONS: dict[str, dict[tuple, list[bytes]]] = {
}

View File

@@ -44,9 +44,8 @@ FINGERPRINTS = {
{% endfor %}
}
{% endif %}
{% if FW_VERSIONS[brand] %}
FW_VERSIONS = {
FW_VERSIONS{% if not FW_VERSIONS[brand] %}: dict[str, dict[tuple, list[bytes]]]{% endif %} = {
{% for car, _ in FW_VERSIONS[brand].items() %}
CAR.{{car.name}}: {
{% for key, fw_versions in FW_VERSIONS[brand][car].items() %}
@@ -60,7 +59,7 @@ FW_VERSIONS = {
},
{% endfor %}
}
{% endif %}
""", trim_blocks=True)