Skip to content

Fix crashes in HA 2026.5.X#14

Merged
Kannix2005 merged 2 commits into
mainfrom
cleanup
May 11, 2026
Merged

Fix crashes in HA 2026.5.X#14
Kannix2005 merged 2 commits into
mainfrom
cleanup

Conversation

@Kannix2005
Copy link
Copy Markdown
Owner

Fix crashes in HA 2026.5.X caused by reloading entry functionality changed.

Hebezo and others added 2 commits May 11, 2026 18:14
…austion

- Remove add_update_listener + async_reload pattern which caused a race
  condition double-reload in HA 2026.5, exhausting executor threads until
  the HA watchdog fired and restarted the process
- Cap SIP register() socket timeout at 10s (was up to 30s for TCP) so
  executor threads are freed faster if the SIP server is slow
- Call _end_call() in _health_monitor_loop before reconnecting Siedle SIP
  to stop a running RTP bridge when the connection drops mid-call

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Re-add add_update_listener + async_reload, but protect it with a
module-level set that blocks a second concurrent reload for the same
entry. In HA 2026.5 the OptionsFlow may trigger an additional reload
after async_create_entry; the guard drops that duplicate instead of
racing two simultaneous setup/unload cycles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Kannix2005 Kannix2005 merged commit e18260d into main May 11, 2026
2 checks passed
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.

1 participant