Send X-Go-White-Label-ID header

Send the hardcoded West Wood white-label tenant ID on API requests, matching
the app. The server doesn't require it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 01:38:17 +01:00
parent 55b4a17a26
commit 0fd2393a3d
4 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ from __future__ import annotations
import aiohttp
from .const import BASE_URL
from .const import BASE_URL, WHITE_LABEL_ID
class WestWoodApiError(Exception):
@@ -36,6 +36,7 @@ class WestWoodClient:
headers={
'Authorization': f'bearer {self._token}',
'Accept': 'application/json',
'X-Go-White-Label-ID': WHITE_LABEL_ID,
},
) as resp:
if resp.status in (401, 403):