aafd487b83
Token-authenticated custom component exposing live per-club member counts as sensors under a single "West Wood Club" device, fed by one coordinator polling `/v1/Clubs/WhoIsInCount`. Packaged via `buildHomeAssistantComponent` with a flake package + overlay so it can be used in `services.home-assistant.customComponents`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
980 B
JSON
35 lines
980 B
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "West Wood Club",
|
|
"description": "Paste a bearer token for the West Wood Club app. You can generate one with get-token.py from the repository.",
|
|
"data": {
|
|
"token": "Bearer token"
|
|
}
|
|
},
|
|
"clubs": {
|
|
"title": "Select clubs",
|
|
"description": "Choose the clubs to create member-count sensors for.",
|
|
"data": {
|
|
"clubs": "Clubs"
|
|
}
|
|
},
|
|
"reauth_confirm": {
|
|
"title": "Re-authenticate West Wood Club",
|
|
"description": "The stored token was rejected. Paste a fresh bearer token.",
|
|
"data": {
|
|
"token": "Bearer token"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_auth": "The token was rejected. Generate a new one and try again.",
|
|
"cannot_connect": "Could not reach the West Wood Club API."
|
|
},
|
|
"abort": {
|
|
"reauth_successful": "Re-authentication was successful."
|
|
}
|
|
}
|
|
}
|