diff --git a/custom_components/fordpass/fordpass_new.py b/custom_components/fordpass/fordpass_new.py index 88dad31..22c3031 100644 --- a/custom_components/fordpass/fordpass_new.py +++ b/custom_components/fordpass/fordpass_new.py @@ -394,7 +394,7 @@ def start(self): Issue a start command to the engine """ return self.__request_and_poll( - "PUT", f"{BASE_URL}/vehicles/v2/{self.vin}/engine/start" + "PUT", f"{BASE_URL}/vehicles/v5/{self.vin}/engine/start" ) def stop(self): @@ -402,7 +402,7 @@ def stop(self): Issue a stop command to the engine """ return self.__request_and_poll( - "DELETE", f"{BASE_URL}/vehicles/v2/{self.vin}/engine/start" + "DELETE", f"{BASE_URL}/vehicles/v5/{self.vin}/engine/start" ) def lock(self): @@ -410,7 +410,7 @@ def lock(self): Issue a lock command to the doors """ return self.__request_and_poll( - "PUT", f"{BASE_URL}/vehicles/v2/{self.vin}/doors/lock" + "PUT", f"{BASE_URL}/vehicles/v5/{self.vin}/doors/lock" ) def unlock(self): @@ -418,7 +418,7 @@ def unlock(self): Issue an unlock command to the doors """ return self.__request_and_poll( - "DELETE", f"{BASE_URL}/vehicles/v2/{self.vin}/doors/lock" + "DELETE", f"{BASE_URL}/vehicles/v5/{self.vin}/doors/lock" ) def enable_guard(self): @@ -452,7 +452,7 @@ def request_update(self, vin=""): else: vinnum = self.vin status = self.__make_request( - "PUT", f"{BASE_URL}/vehicles/v2/{vinnum}/status", None, None + "PUT", f"{BASE_URL}/vehicles/v5/{vinnum}/status", None, None ) return status.json()["status"] diff --git a/custom_components/fordpass/manifest.json b/custom_components/fordpass/manifest.json index 5a0a0ea..05f9bd8 100644 --- a/custom_components/fordpass/manifest.json +++ b/custom_components/fordpass/manifest.json @@ -12,6 +12,6 @@ "loggers": ["custom_components.fordpass"], "requirements": [], "ssdp": [], - "version": "0.1.51", + "version": "0.1.52", "zeroconf": [] } \ No newline at end of file diff --git a/info.md b/info.md index 42e663f..adc5f13 100644 --- a/info.md +++ b/info.md @@ -1,4 +1,6 @@ ## **Changelog** +### Version 1.52 +- Update for discontinued API endpoints (Update, lock, remote start) ### Version 1.51 - Fix for incorrect tire pressure conversion - Handling of blank nickName when configuring car in config flow