Strip duplicate club-name prefix from sensor names
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>
This commit is contained in:
@@ -4,6 +4,10 @@ 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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user