Allow non-blocking setup when device is offline (#295) - #303
Open
firstof9 wants to merge 1 commit into
Open
Conversation
firstof9
force-pushed
the
fix-offline-setup-issue-295
branch
from
August 5, 2026 17:19
aee2d57 to
7a62940
Compare
When a device is offline or unreachable during Home Assistant startup, previously raised . HA's built-in retry mechanism uses exponential backoff up to 15 minutes, which leads to a poor user experience for local LAN devices. Catch initial connection errors during and log a warning instead of failing setup. This allows platforms to set up and entities to be created (in an unavailable state), while the coordinator continues background retry polling.
firstof9
force-pushed
the
fix-offline-setup-issue-295
branch
from
August 5, 2026 17:24
7a62940 to
76af6af
Compare
Contributor
Author
|
@mbillow I still hope we could get this merged. |
Owner
|
Sorry, I’m on vacation this week. 🏖️ This one is going to take some thought, so I was planning on getting to it when I get back next week. Sorry for the delay. |
Contributor
Author
|
No worries, it basically makes the device and entities not do the infinite "initializing" and just loads them while re-connection occurs in the background, similar to how the cloud integration works. have a good vacation man. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #295
Problem
If a Samsung appliance is powered off during Home Assistant restart,
async_setup_entryraisesConfigEntryNotReady. HA's built-in retry uses exponential backoff up to 15 minutes, which is poor UX for a LAN-local integration.Solution
async_setup_entry, log a warning, and proceed with setup.