github WiesiDeluxe/ha-harvia-sauna v2.10.0b9
v2.10.0b9 — Fast reloads, clean restarts (beta)

pre-release2 hours ago

🧪 Beta 9

Reloading took ~12 seconds on b8 (#9). b8 put a timeout on every step of closing the cloud connections, but still waited for a graceful close after telling the cloud to stop the subscription. The cloud never answers that close, so each connection ran into the full timeout. Now the connection is dropped once the stop message has gone out, and all connections are closed in parallel — a reload should be back to about a second.

Restarts left the cloud connections hanging. Home Assistant does not unload integrations when it stops, so our cleanup never ran at a restart; the connections were cancelled into the same unanswered close, which shows up in the log as "Task could not be canceled and was still running after shutdown", once per connection. The integration now shuts its connections down itself when Home Assistant stops.

Everything else from b8 is unchanged.

Thanks @fasdav for timing it down to the single call that stalled.

Note: this is a pre-release. Enable "Show beta versions" for the integration in HACS to test it.

Don't miss a new ha-harvia-sauna release

NewReleases is sending notifications on new releases.