Skip to content

Commit

Permalink
Re-add app version to assure we get powerplay values
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris committed Oct 15, 2024
1 parent fa58c74 commit b976c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/zonneplan_one/zonneplan_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from ..const import VERSION

APP_VERSION = "4.22.3"
LOGIN_REQUEST_URI = "https://app-api.zonneplan.nl/auth/request"
OAUTH2_TOKEN_URI = "https://app-api.zonneplan.nl/oauth/token"

Expand All @@ -17,6 +18,7 @@ def __init__(self, session: aiohttp.ClientSession):
self._session = session
self._request_headers = {
"content-type": "application/json;charset=utf-8",
"x-app-version": APP_VERSION,
"x-app-environment": "production",
"x-ha-integration": VERSION,
}
Expand Down

0 comments on commit b976c95

Please sign in to comment.