How rgerbranda/rbfa works
This Home Assistant integration turns a configured RBFA team number into calendar events and match-related sensors. The setup flow stores team and display options; a 15-minute coordinator refreshes RBFA team, calendar, match-detail, and optionally ranking data, then exposes it through calendar and sensor platforms. Match enrichment and ranking are distinct data stages within the API implementation. The README also documents ranking attributes and sensor-based dashboard cards. Relationships are limited to those shown in excerpts or stated in the README; no unsampled modules are assumed.
Main entry points: API.py Team data collector · coordinator.py Refresh coordinator · calendar.py Team calendar · sensor.py Match sensors
Components 15
Configuration & setup
- Team configuration
custom_components/rbfa/config_flow.py - Entry setup
custom_components/rbfa/__init__.py
RBFA data retrieval
- Team data collector
custom_components/rbfa/API.py - Team & calendar retrieval
custom_components/rbfa/API.py - Match detail enrichment
custom_components/rbfa/API.py - Series rankings
custom_components/rbfa/API.py
Home Assistant entities
- Team calendar
custom_components/rbfa/calendar.py - Match sensors
custom_components/rbfa/sensor.py
Shared integration layer
- Integration constants
custom_components/rbfa/const.py - Refresh coordinator
custom_components/rbfa/coordinator.py - Coordinator entity base
custom_components/rbfa/entity.py
Other components
- Home Assistant user
- RBFA service
- Home Assistant calendar
- Home Assistant sensors
Connections 16
- Home Assistant user → Team configuration: configures team
custom_components/rbfa/config_flow.py - Entry setup → Refresh coordinator: creates
custom_components/rbfa/__init__.py - Entry setup → Team calendar: forwards platform
custom_components/rbfa/__init__.py - Entry setup → Match sensors: forwards platform
custom_components/rbfa/__init__.py - Refresh coordinator → Team data collector: refreshes via
custom_components/rbfa/coordinator.py - Team data collector → Team & calendar retrieval: retrieves
custom_components/rbfa/API.py - Team data collector → Match detail enrichment: retrieves
custom_components/rbfa/API.py - Team data collector → Series rankings: optionally retrieves
custom_components/rbfa/API.py - Team data collector → RBFA service: queries GraphQL
custom_components/rbfa/API.py - Team data collector → Refresh coordinator: returns match data
custom_components/rbfa/coordinator.py - Team calendar → Refresh coordinator: reads events
custom_components/rbfa/calendar.py - Match sensors → Refresh coordinator: reads match data
custom_components/rbfa/sensor.py - Team calendar → Coordinator entity base: inherits
custom_components/rbfa/calendar.py - Match sensors → Coordinator entity base: inherits
custom_components/rbfa/sensor.py - Team calendar → Home Assistant calendar: provides events
README.md - Match sensors → Home Assistant sensors: exposes match values
README.md