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
70.47k stars 29.4k forks source link

Airthings BLE startup slows down the whole HASS startup process #103797

Closed nasdim closed 6 months ago

nasdim commented 9 months ago

The problem

My Airthings BLE integration is delaying my whole HAC startup. HAC is unavailable until Airthings BLE manages to load. Sometimes also it doesn't even load the sensors, and there seems to be an expiry time, after which HAC finally loads. But I don't know how to determine what that expiry time is.

Is there a way to tell HASS to load Airthings BLE in the background by default and ignore it at startup?

Here are a couple of lines from my logs:

Config entry 'Airthings Wave Plus (098976)' for airthings_ble integration not ready yet: Unable to fetch data: M:A:C:A:D:R:E:S:S - M:A:C:A:D:R:E:S:S: Failed to connect after 7 attempt(s): [org.bluez.Error.Failed] Software caused connection abort; Retrying in background
10:14:56 AM – (WARNING) config_entries.py
Waiting on integrations to complete setup: airthings_ble
10:14:50 AM – (WARNING) bootstrap.py

What version of Home Assistant Core has the issue?

core-2023.9.0

What type of installation are you running?

Home Assistant Container

Integration causing the issue

airthings_ble

Link to integration documentation on our website

https://www.home-assistant.io/integrations/airthings_ble

Anything in the logs that might be useful for us?

Config entry 'Airthings Wave Plus (098976)' for airthings_ble integration not ready yet: Unable to fetch data: M:A:C:A:D:R:E:S:S - M:A:C:A:D:R:E:S:S: Failed to connect after 7 attempt(s): [org.bluez.Error.Failed] Software caused connection abort; Retrying in background
10:14:56 AM – (WARNING) config_entries.py
Waiting on integrations to complete setup: airthings_ble
10:14:50 AM – (WARNING) bootstrap.py
home-assistant[bot] commented 9 months ago

Hey there @vincegio, @lastrada, mind taking a look at this issue as it has been labeled with an integration (airthings_ble) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `airthings_ble` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign airthings_ble` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


airthings_ble documentation airthings_ble source (message by IssueLinks)

issue-triage-workflows[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.