-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Bug Description
The integration enters an infinite reload loop that causes entities to flicker between available and unavailable states. The logs show repeated messages:
INFO [custom_components.span_panel.coordinator] Reloading SPAN Panel integration
INFO [custom_components.span_panel.select] First update: syncing entity name to panel name 'None' for select, requesting reload
INFO [custom_components.span_panel.sensors.base] First update: syncing sensor name to panel name 'None', requesting reload
INFO [custom_components.span_panel.sensors.base] First update: syncing energy sensor name to panel name 'None', requesting reload
INFO [custom_components.span_panel.switch] First update: syncing entity name to panel name 'None' for switch, requesting reload
INFO [custom_components.span_panel.coordinator] SPAN Panel integration reload completed successfully
This cycle repeats indefinitely every ~15 seconds (scan interval).
Impact
- Entities continuously flicker to "unavailable" and back
- Dashboard displays become unusable
- Automations depending on these entities may fail
Investigation Notes
- Network connectivity is fine - API calls complete successfully in ~0.3-2s
migration_mode: falsedid not fix the issue - the name syncing logic appears to be separate from migration- Panel name is
None- The integration is trying to sync entity names with a panel name that isNone, which triggers the reload request - Debug logs show successful updates followed immediately by reload requests:
DEBUG [custom_components.span_panel.span_panel] Panel update completed successfully INFO [custom_components.span_panel.coordinator] SPAN Panel update cycle completed - Total: 0.959s INFO [custom_components.span_panel.coordinator] Reloading SPAN Panel integration
Environment
- Home Assistant 2026.1.2
- span_panel integration (HACS)
- span-panel-api 1.1.14 (with PR All entities offline [firmware: spanos2/r202525/05] #93 applied for network error handling)
- Two Span Panels configured via zeroconf
Configuration
Both panels have:
migration_mode: false(changed from true, no effect)use_device_prefix: truescan_interval: 15
Expected Behavior
The integration should not enter a reload loop when the panel name is None or unset. The name syncing logic should either:
- Skip syncing if the panel name is None
- Use a sensible default name
- Not trigger a reload for this condition
Related
- Testing with span-panel-api PR: Handle NetworkError exceptions in retry logic for parallel requests span-panel-api#93 (network error handling - separate issue)
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels