home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.29k stars 30.61k forks source link

Error in container log when restarting HA: `list.remove(x): x not in list` #129633

Open hmmbob opened 19 hours ago

hmmbob commented 19 hours ago

The problem

When I click "Restart HA" inside the UI, I see these lines in my container log:

2024-11-01 13:38:40.423 ERROR (MainThread) [homeassistant.core] Unable to remove unknown job listener (<Job onetime listen homeassistant_stop <function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0x7f6e591e7560> HassJobType.Callback <_OneTimeListener homeassistant.helpers.update_coordinator:<function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0x7f6e591e7560>>>, None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1717, in _async_remove_listener
    self._listeners[event_type].remove(filterable_job)
ValueError: list.remove(x): x not in list
2024-11-01 13:38:40.429 ERROR (MainThread) [homeassistant.core] Unable to remove unknown job listener (<Job onetime listen homeassistant_stop <function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0x7f6e591e7b00> HassJobType.Callback <_OneTimeListener homeassistant.helpers.update_coordinator:<function DataUpdateCoordinator.async_register_shutdown.<locals>._on_hass_stop at 0x7f6e591e7b00>>>, None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1717, in _async_remove_listener
    self._listeners[event_type].remove(filterable_job)
ValueError: list.remove(x): x not in list

What version of Home Assistant Core has the issue?

core-2024.10

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response