Skip to content

Commit 5ba51f6

Browse files
authored
Add support for new Audi EVs (#31)
* Add support for new Audi EVs
1 parent 84ff728 commit 5ba51f6

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

src/libs/common_query_params.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class CommonInventoryQueryParams:
1010
"""
1111

1212
valid_models = [
13-
r"^Ioniq(%20|\+|\s|\-)5((%20|\+|\-)N)?$", # Hyundai Ioniq 5 and 5 N # noqa: W605
14-
r"^Ioniq(%20|\+|\s|\-)(6|9)$", # Hyundai Ioniq 6, 9 # noqa: W605
15-
r"^Kona(%20|\+|\s)Ev$", # Hyundai Kona EV # noqa: W605
13+
r"^Ioniq(%20|\+|\s|\-)5((%20|\+|\-)N)?$", # Hyundai Ioniq 5 and 5 N
14+
r"^Ioniq(%20|\+|\s|\-)(6|9)$", # Hyundai Ioniq 6, 9
15+
r"^Kona(%20|\+|\s)Ev$", # Hyundai Kona EV
1616
"^N$", # Kia EV6
1717
"^V$", # Kia Niro EV
1818
"^P$", # Kia EV9
@@ -29,9 +29,9 @@ class CommonInventoryQueryParams:
2929
"^Equinox EV$", # Chevrolet Equinox EV
3030
"^Silverado EV$", # Chevrolet Silverado EV
3131
"^etron$", # Audi e-tron
32-
"^etrongt$", # Audi e-tron GT
33-
"^q4$", # Audi Q4 e-tron
34-
"^s?q8etron$", # Audi Q8 e-tron, SQ8 e-tron
32+
"^(rs)?etrongt$", # Audi e-tron GT, RS e-tron GT
33+
"^q(4|6)$", # Audi Q4 e-tron, Q6 e-tron
34+
"^s?q(6|8)etron$", # Audi Q8 e-tron, SQ8 e-tron,SQ6 e-tron
3535
"^i4$", # BMW i4
3636
"^i5$", # BMW i5
3737
"^i7$", # BMW i7

src/routers/audi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2023 - 2025 Ben Chapman
2+
#
3+
# This file is part of The EV Finder.
4+
#
5+
# The EV Finder is free software: you can redistribute it and/or modify it under the
6+
# terms of the GNU General Public License as published by the Free Software Foundation,
7+
# either version 3 of the License, or (at your option) any later version.
8+
#
9+
# The EV Finder is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
# See the GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License along with The EV Finder.
14+
# If not, see <https://www.gnu.org/licenses/>.
15+
116
import copy
217

318
from fastapi import APIRouter, Depends, Request

0 commit comments

Comments
 (0)