Closed taakberg closed 2 months ago
Hey there @thrawnarn, @louischrist, mind taking a look at this issue as it has been labeled with an integration (bluesound
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
bluesound documentation bluesound source (message by IssueLinks)
This use of async_create_task
might be the reason:
async def async_added_to_hass(self) -> None:
"""Start the polling task."""
await super().async_added_to_hass()
self._polling_task = self.hass.async_create_task(self._start_poll_command())
Using async_create_background_task
seems to solve the problem.
The problem
I just updated to Home Assistant Core 2024.8.0, which makes the Bluesound integration available trough the UI. I previously had bluesound configured via YAML, so that configuration was imported to the UI.
After updating, I noticed Home Assistant taking a long time to start up completely. When checking the logs, I noticed that Home Assistant seems to be waiting on a Bluesound task that seems to be running too long.
When restarting Home Assistant, it now takes around 5 minutes longer then usual.
What version of Home Assistant Core has the issue?
core-2024.8.0
What was the last working version of Home Assistant Core?
core-2024.7.0
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Bluesound
Link to integration documentation on our website
https://www.home-assistant.io/integrations/bluesound
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response