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:
2026-06-14 00:48:51 +01:00
parent 792d5e176b
commit 475ccf21e6
4 changed files with 11 additions and 5 deletions
@@ -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'