Skip to content

Commit

Permalink
Merge pull request #8 from daernsinstantfortress/dev
Browse files Browse the repository at this point in the history
Revert URL change for requests - it broke stuff :/
  • Loading branch information
daernsinstantfortress committed Oct 31, 2023
2 parents 479b88a + aafc8f3 commit 185512a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion weconnect_cupra/__version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.50.05'
__version__ = '0.50.06'
4 changes: 2 additions & 2 deletions weconnect_cupra/api/cupra/elements/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __setClimatizationControlChange(self, value): # noqa: C901

# Do API request to set run state
controlResponse = self.vehicle.fetcher.post(
url=f'https://ola.prod.code.seat.cloud.vwgroup.com/v1/vehicles/{self.vehicle.vin.value}/climatisation/requests/{control.value}',
url=f'https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/{self.vehicle.vin.value}/climatisation/requests/{control.value}',
allow_redirects=True,
headers={
"accept": '*/*',
Expand Down Expand Up @@ -156,7 +156,7 @@ def __setChargingControlChange(self, value): # noqa: C901

# Do API request
controlResponse = self.vehicle.fetcher.post(
url=f'https://ola.prod.code.seat.cloud.vwgroup.com/v1/vehicles/{self.vehicle.vin.value}/charging/requests/{value.value}',
url=f'https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/{self.vehicle.vin.value}/charging/requests/{value.value}',
data='{}',
allow_redirects=True,
headers={
Expand Down

0 comments on commit 185512a

Please sign in to comment.