Skip to content

Commit

Permalink
fix: updated remote_engine_start and _stop (#130)
Browse files Browse the repository at this point in the history
Update remote_engine_start and _stop to use v3 config in Content-Type, fixes #120
  • Loading branch information
scotttag authored Apr 23, 2024
1 parent 9843a06 commit 1ba783d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jlrpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def honk_blink(self):
def remote_engine_start(self, pin, target_value):
"""Start Remote Engine preconditioning"""
headers = self.connection.head.copy()
headers["Content-Type"] = "application/vnd.wirelesscar.ngtp.if9.StartServiceConfiguration-v2+json"
headers["Content-Type"] = "application/vnd.wirelesscar.ngtp.if9.StartServiceConfiguration-v3+json"
self.set_rcc_target_value(pin, target_value)
reon_data = self.authenticate_reon(pin)

Expand All @@ -423,7 +423,7 @@ def remote_engine_start(self, pin, target_value):
def remote_engine_stop(self, pin):
"""Stop Remote Engine preconditioning"""
headers = self.connection.head.copy()
headers["Content-Type"] = "application/vnd.wirelesscar.ngtp.if9.StartServiceConfiguration-v2+json"
headers["Content-Type"] = "application/vnd.wirelesscar.ngtp.if9.StartServiceConfiguration-v3+json"
reoff_data = self.authenticate_reoff(pin)

return self.post("engineOff", headers, reoff_data)
Expand Down

0 comments on commit 1ba783d

Please sign in to comment.