475ccf21e6
With has_entity_name the device name is prepended, so the API's 'West Wood Club <club>' names rendered as 'West Wood Club West Wood Club <club>'. Strip the prefix to show e.g. 'West Wood Club Dun Laoghaire'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
542 B
Python
20 lines
542 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'
|
|
|
|
# Config entry keys.
|
|
CONF_TOKEN = 'token'
|
|
CONF_CLUBS = 'clubs'
|
|
|
|
# How often to poll live occupancy.
|
|
UPDATE_INTERVAL = timedelta(minutes=5)
|