From 3f4944cd764ec4787d8091c5f117d828308bfd37 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 12 May 2024 07:42:10 +1000 Subject: [PATCH] make pre2021 a prop --- tesla_fleet_api/vehiclespecific.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tesla_fleet_api/vehiclespecific.py b/tesla_fleet_api/vehiclespecific.py index 6fe08d0..7f3633b 100644 --- a/tesla_fleet_api/vehiclespecific.py +++ b/tesla_fleet_api/vehiclespecific.py @@ -17,6 +17,7 @@ def __init__(self, parent, vin: str | int | None = None): self._parent = parent self.vin = vin + @property def pre2021(self) -> bool: """Checks if a vehicle is pre-2021.""" return self._parent.pre2021(self.vin)