Skip to content

Auto-update gives a fatal error in the log and does not update the spool list #198

Description

@RealShade

System Health details

Core
2025.3.2
Supervisor
2025.03.2
Operating System
14.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Auto-update gives a fatal error in the log and does not update the list.
When starting and restarting the integration, all spools are picked up normally. Also, when changing the auto-update interval, the spools are updated without errors.

v1.0.0, installed with HACS (I tried without HACS - the same result)

Reproduction steps

always

Debug logs

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 479, in _async_refresh
    self.async_update_listeners()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 178, in async_update_listeners
    update_callback()
    ~~~~~~~~~~~~~~~^^
  File "/config/custom_components/spoolman/sensor.py", line 199, in _handle_coordinator_update
    spool_data = self.coordinator.data[self.idx]
                 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
IndexError: list index out of range

Diagnostics dump

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions