Skip to content

Commit

Permalink
sync with new api version
Browse files Browse the repository at this point in the history
  • Loading branch information
dentra committed Nov 28, 2024
1 parent b806e36 commit cc8103c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/pesc/pesc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def async_login(self, username: str, password: str) -> str:
headers["Captcha"] = "none"
payload = {"type": "PHONE", "login": username, "password": password}
result = await self._session.post(
f"{self._API_URL}/v6/users/auth", headers=headers, json=payload
f"{self._API_URL}/v7/users/auth", headers=headers, json=payload
)
json = await self._async_response_json(result)
self.token = json["auth"]
Expand All @@ -246,7 +246,7 @@ async def async_update_value(
payload,
)
result = await self._session.post(
f"{self._API_URL}/v6/accounts/{account_id}/meters/{meter_id}/reading",
f"{self._API_URL}/v7/accounts/{account_id}/meters/{meter_id}/reading",
headers=self._headers,
json=payload,
)
Expand Down

0 comments on commit cc8103c

Please sign in to comment.