Files
jackos1998 0fd2393a3d 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>
2026-06-14 01:38:42 +01:00

25 lines
794 B
Python

"""Constants for the West Wood Club integration."""
from datetime import timedelta
DOMAIN = 'west_wood_club'
# Shown as the device name; also the prefix the API puts on every club name
# (e.g. 'West Wood Club Dun Laoghaire'), stripped from per-club entity names.
DEVICE_NAME = 'West Wood Club'
# PerfectGym Go backend (West Wood is a white-label tenant).
BASE_URL = 'https://goapi2.perfectgym.com'
# Hardcoded West Wood white-label tenant ID (baked into the app binary). Sent as
# the X-Go-White-Label-ID header. The server doesn't require it, but it matches
# what the app sends. See api.md.
WHITE_LABEL_ID = '7d073db5-0ef8-4d78-89ec-4a8bebaf4cbc'
# Config entry keys.
CONF_TOKEN = 'token'
CONF_CLUBS = 'clubs'
# How often to poll live occupancy.
UPDATE_INTERVAL = timedelta(minutes=5)