Skip to content

Allow non-blocking setup when device is offline (#295) - #303

Open
firstof9 wants to merge 1 commit into
mbillow:mainfrom
firstof9:fix-offline-setup-issue-295
Open

Allow non-blocking setup when device is offline (#295)#303
firstof9 wants to merge 1 commit into
mbillow:mainfrom
firstof9:fix-offline-setup-issue-295

Conversation

@firstof9

@firstof9 firstof9 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #295

Problem

If a Samsung appliance is powered off during Home Assistant restart, async_setup_entry raises ConfigEntryNotReady. HA's built-in retry uses exponential backoff up to 15 minutes, which is poor UX for a LAN-local integration.

Solution

  • Catch initial connection / refresh errors in async_setup_entry, log a warning, and proceed with setup.
  • Platforms are forwarded and entities are created in Home Assistant (in an unavailable state until the device comes online).
  • The coordinator continues background retry polling.
  • Updated unit tests to verify offline setup succeeds cleanly.

@firstof9
firstof9 force-pushed the fix-offline-setup-issue-295 branch from aee2d57 to 7a62940 Compare August 5, 2026 17:19
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
firstof9 force-pushed the fix-offline-setup-issue-295 branch from 7a62940 to 76af6af Compare August 5, 2026 17:24
@firstof9

firstof9 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@mbillow I still hope we could get this merged.

@mbillow

mbillow commented Aug 6, 2026

Copy link
Copy Markdown
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.

@firstof9

firstof9 commented Aug 6, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup uses exponential backoff up to 15min for offline devices — unacceptable UX for local integration

2 participants