Skip to content

Commit 05dad91

Browse files
Fix common typo in battery type
1 parent 79afb72 commit 05dad91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/new_device.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up python 3.12
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: '3.12'
28+
python-version: "3.12"
2929

3030
- name: Update JSON file
3131
id: update-json
@@ -53,6 +53,10 @@ jobs:
5353
if new_device.get("hw_version", "MISSING").strip() == "":
5454
del new_device["hw_version"]
5555
56+
# Fix common typo in battery type
57+
if new_device.get("battery_type", "").lower() == "rechargable":
58+
new_device["battery_type"] = "Rechargeable"
59+
5660
# Check for duplicates and replace old entry with new one
5761
duplicate_found = False
5862
for i, device in enumerate(devices):

0 commit comments

Comments
 (0)