From a2a3d8739f66623714c3c3cd147741548b38db08 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 6 Jan 2025 15:17:41 +1000 Subject: [PATCH] Re add command errors --- tesla_fleet_api/exceptions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tesla_fleet_api/exceptions.py b/tesla_fleet_api/exceptions.py index 63b48c0..3bbd234 100644 --- a/tesla_fleet_api/exceptions.py +++ b/tesla_fleet_api/exceptions.py @@ -318,6 +318,18 @@ class UnknownFault(TeslaFleetInformationFault): message = "Unknown fault on signed command." code = 1 +class NotOnWhitelistFault(TeslaFleetInformationFault): + """Not on whitelist fault on signed command.""" + + message = "Not on whitelist fault on signed command." + code = 2 + +class IVSmallerThanExpectedFault(TeslaFleetInformationFault): + """IV smaller than expected fault on signed command.""" + + message = "IV smaller than expected fault on signed command." + code = 3 + class InvalidTokenFault(TeslaFleetInformationFault): """Invalid token fault on signed command."""