From 55dce80e27a84d7131ce741d3a21f2934e1312a1 Mon Sep 17 00:00:00 2001 From: Fabrice Devaux Date: Sat, 28 Sep 2024 21:04:30 +0200 Subject: [PATCH] Make Specification.trim_level optional Fixes #48 --- myskoda/models/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myskoda/models/info.py b/myskoda/models/info.py index 52ba2140..b6f46bcf 100644 --- a/myskoda/models/info.py +++ b/myskoda/models/info.py @@ -156,11 +156,11 @@ class Specification(DataClassORJSONMixin): model_year: str = field(metadata=field_options(alias="modelYear")) system_code: str = field(metadata=field_options(alias="systemCode")) system_model_id: str = field(metadata=field_options(alias="systemModelId")) - trim_level: str = field(metadata=field_options(alias="trimLevel")) + battery: Battery | None = field(default=None) max_charging_power: int | None = field( default=None, metadata=field_options(alias="maxChargingPowerInKW") ) - battery: Battery | None = field(default=None) + trim_level: str | None = field(default=None, metadata=field_options(alias="trimLevel")) @dataclass