-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brother Integration not initializing, stopping HA 2024.3 from fully starting #112568
Comments
Hey there @bieniu, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) brother documentation |
Please attach the log. |
Seems that it's only blocking when the printer is unavailable. I attached a Debug-Log from reloading the integration while my printer was off power. |
I noticed this in the beta that it blocks for 3-4 minutes if the printer is powered off. As soon as the printer is powered on, it starts up as normal. |
I cannot reproduce this problem either on 2024.3.0 or on the dev branch:
|
Just tried again. As I said above, if I power off (not just sleep) the printer it blocks the startup of HA for 4 minutes
|
My printer was also turned off (power cut off) during the test. Please enable debugging for the Brother integration, restart HA and wait for HA to fully start, then attach the log file here. |
Not much extra with
|
And this is with the printer powered on
|
I think you forgot to attach the log file. |
I copied all that was relevant, just a few extra bits from other components, nothing extra with "brother" |
I asked you to attach a log file, the whole file, not a tiny fragment. Since your system behaves differently from my dev environment, we must first understand why this is happening. Without this, we will wander in the dark. |
What happened next? Does the integration retry initialization? Once again, I'm asking for the diagnostics file. |
No, it doesn't try again. If I turn on the printer, and reload the integration it works fine again The logs above are the ones that are created when I turn off debug logging in the integration page. Not sure where the diagnostic file is ? |
This will be available only after proper initialization of integration (the printer should be online). |
I restarted HA and it was there, see attached |
Could you disable all custom components and restart HA while the printer is offline? |
I have the same issue, but only when the printer is offline. It then takes freaking ages for HA to fully startup, waiting for the Brother printer integration. Seems like this could be "fixed" by at least creating a timeout. |
As I cannot reproduce this problem in my environment, I'm asking for help in testing the fix. Please unpack the attached ZIP file, copy the |
Link to the file updated. |
I can confirm this issue does not occur with this custom version. |
Hello @bieniu, I added the folder to /config/custom_components in HA. HA loads pretty fast with no issues, but I do get an error whenever I reboot (see attached screenshots and log) |
The change has been merged and the branch is not available. You have to remove folder with a custom brother and wait for 2024.3.1 release. |
Got you. Thanks for the update @bieniu |
The problem
Updated to 2024.3. Everything works well, except for my Brother integration not finalizing the initializing phase. This stops Home Assistant from fully starting when it boots up. Can’t ask it to reboot. Have to delete or disable the Brother integration and shut down my entire VM to get Home Assistant to fully start
What version of Home Assistant Core has the issue?
core-2024.3
What was the last working version of Home Assistant Core?
core-2024.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Brother
Link to integration documentation on our website
https://www.home-assistant.io/integrations/brother/
Diagnostics information
Updated to 2024.3. Everything works well, except for my Brother integration not finalizing the initializing phase. This stops Home Assistant from fully starting when it boots up. Can’t ask it to reboot. Have to delete or disable the Brother integration and shut down my entire VM to get Home Assistant to fully start
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: