Skip to content

Conversation

@joostlek
Copy link
Member

@joostlek joostlek commented Dec 5, 2025

Proposed change

So apparently Entsoe has an outage of some sort (I also heard stories that the API changed, I haven't looked into this specifically). For some reason, this causes the integration to create a ton of tasks that raise an exception. I believe this is the main reason the integration crashes (I am not strong on python tasks, but I know exceptions should be caught inside of tasks, but I am not sure what would happen if you don't and if that happens a lot).

The integration has 1.4k reported installations, which means this change would have a sizeable impact, but also means that all these people can't update to 2025.12.0 today. While this may be a temporary outage, I don't have reason not to assume this can't happen when a user has a local internet outage. In any case, it shouldn't bring your system down and I think we should first allow HA to start up.

[31m2025-12-01 11:00:00.002 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.5742220422426 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.007 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.5742220984503 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.008 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.57422212773 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.009 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.574222198847 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.010 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.5742222541703 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.013 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.574222541239 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�[0m
�[31m2025-12-01 11:00:00.015 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _TrackPointUTCTime(hass=<HomeAssistant RUNNING>, job=<Job None HassJobType.Callback <bound method Entity.async_schedule_update_ha_state of <entity unknown.unknown=unknown>>>, utc_point_in_time=datetime.datetime(2025, 12, 1, 10, 0, tzinfo=datetime.timezone.utc), expected_fire_timestamp=1764583200.0, _cancel_callback=<TimerHandle when=2362.5742277507256 ...()>)() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1532, in __call__
    self.hass.async_run_hass_job(self.job, self.utc_point_in_time)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 918, in async_run_hass_job
    hassjob.target(*args)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1271, in async_schedule_update_ha_state
    self.hass.async_create_task(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'async_create_task'�

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to frontend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

@joostlek joostlek added this to the 2025.12.1 milestone Dec 5, 2025
Copilot AI review requested due to automatic review settings December 5, 2025 12:15
@joostlek joostlek requested a review from a team as a code owner December 5, 2025 12:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents the entsoe custom integration from loading in Home Assistant due to a critical issue causing system crashes. The integration is experiencing an API outage or changes that trigger mass exception creation, preventing approximately 1,400 users from updating to version 2025.12.0.

Key Changes:

  • Adds entsoe to the blocked custom integrations list with version 0.7.0 as the minimum required good version
  • Includes reference to issue #263 for tracking the underlying problem

@epenet
Copy link
Contributor

epenet commented Dec 5, 2025

Do we need to close/reopen the PR to trigger the bots?

@epenet
Copy link
Contributor

epenet commented Dec 5, 2025

Do we need to close/reopen the PR to trigger the bots?

The regular CI is passing - it's just the HA bot that is failing to trigger (cla, labels, approval, ...)

@frenck frenck merged commit b8f4b95 into home-assistant:dev Dec 5, 2025
60 checks passed
@joostlek joostlek deleted the block-entsoe branch December 5, 2025 20:10
frenck added a commit that referenced this pull request Dec 5, 2025
Co-authored-by: epenet <[email protected]>
Co-authored-by: Franck Nijhof <[email protected]>
@frenck frenck mentioned this pull request Dec 5, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants