Skip to content

Fix async shutdown for SkyKettle connection - #92

Merged
ClusterM merged 1 commit into
ClusterM:masterfrom
IvanGerr:codex/fix-async-stop-shutdown
Mar 31, 2026
Merged

Fix async shutdown for SkyKettle connection#92
ClusterM merged 1 commit into
ClusterM:masterfrom
IvanGerr:codex/fix-async-stop-shutdown

Conversation

@IvanGerr

Copy link
Copy Markdown
Contributor

This fixes the integration shutdown path for KettleConnection.

stop() currently calls the async _disconnect() method without awaiting it, and the unload path runs stop() in an executor. As a result, the BLE disconnect coroutine is never actually awaited during config flow cleanup or entry unload.

This patch makes stop() async, awaits disconnect(), clears any pending target state during disposal, and updates both call sites to await stop() directly.

@IvanGerr
IvanGerr force-pushed the codex/fix-async-stop-shutdown branch from b5a9a3b to 427da5c Compare March 30, 2026 21:35
@ClusterM
ClusterM merged commit 65097ed into ClusterM:master Mar 31, 2026
2 checks passed
@ClusterM

Copy link
Copy Markdown
Owner

Thank you!

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.

2 participants